summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs4
-rw-r--r--vcl/source/window/printdlg.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 0739d3289518..f6f87e53c1f3 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -3502,12 +3502,12 @@
</info>
<value>false</value>
</prop>
- <prop oor:name="Width" oor:type="xs:long">
+ <prop oor:name="Width" oor:type="xs:int">
<info>
<desc>Stores the width of the print dialog.</desc>
</info>
</prop>
- <prop oor:name="Height" oor:type="xs:long">
+ <prop oor:name="Height" oor:type="xs:int">
<info>
<desc>Stores the height of the print dialog.</desc>
</info>
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index e104f79fc81b..a7b1bd96e9ba 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -684,8 +684,8 @@ PrintDialog::PrintDialog(weld::Window* i_pWindow, const std::shared_ptr<PrinterC
450);
// restore dialog size
- std::optional<long> aWidth = officecfg::Office::Common::Print::Dialog::Width::get();
- std::optional<long> aHeight = officecfg::Office::Common::Print::Dialog::Height::get();
+ std::optional<sal_Int32> aWidth = officecfg::Office::Common::Print::Dialog::Width::get();
+ std::optional<sal_Int32> aHeight = officecfg::Office::Common::Print::Dialog::Height::get();
WindowStateData aState;
if (aWidth) aState.SetWidth(*aWidth); else aWidth = -1;
if (aHeight) aState.SetHeight(*aHeight); else aHeight = -1;