summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs10
-rw-r--r--vcl/source/window/printdlg.cxx11
2 files changed, 0 insertions, 21 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index ca7a467c2cca..908decfc99e0 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -3524,16 +3524,6 @@
</info>
<value>false</value>
</prop>
- <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:int">
- <info>
- <desc>Stores the height of the print dialog.</desc>
- </info>
- </prop>
</group>
</group>
<group oor:name="AddXMLToStorage">
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index be53d3511365..9f5906310799 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -732,15 +732,6 @@ PrintDialog::PrintDialog(weld::Window* i_pWindow, const std::shared_ptr<PrinterC
mxScrolledWindow->get_preferred_size().Width() + mxScrolledWindow->get_scroll_thickness(),
450);
- // restore dialog size
- 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;
- aState.SetMask(WindowStateMask::Width | WindowStateMask::Height);
- m_xDialog->set_window_state(aState.ToStr());
-
m_xDialog->set_centered_on_parent(true);
}
@@ -749,8 +740,6 @@ PrintDialog::~PrintDialog()
std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create());
officecfg::Office::Common::Print::Dialog::RangeSectionExpanded::set(mxRangeExpander->get_expanded(), batch);
officecfg::Office::Common::Print::Dialog::LayoutSectionExpanded::set(mxLayoutExpander->get_expanded(), batch);
- officecfg::Office::Common::Print::Dialog::Width::set(m_xDialog->get_size().getWidth(), batch);
- officecfg::Office::Common::Print::Dialog::Height::set(m_xDialog->get_size().getHeight(), batch);
batch->commit();
}