summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/sidebar/PageFormatPanel.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sw/source/uibase/sidebar/PageFormatPanel.cxx b/sw/source/uibase/sidebar/PageFormatPanel.cxx
index 969d7d8210da..7a13c6553fde 100644
--- a/sw/source/uibase/sidebar/PageFormatPanel.cxx
+++ b/sw/source/uibase/sidebar/PageFormatPanel.cxx
@@ -198,12 +198,8 @@ void PageFormatPanel::NotifyItemUpdate(
if (eFUnit != meFUnit)
{
meFUnit = eFUnit;
- auto nHeight = mxPaperHeight->GetCoreValue(meUnit);
mxPaperHeight->SetFieldUnit(meFUnit);
- mxPaperHeight->SetMetricValue(nHeight, meUnit);
- auto nWidth = mxPaperWidth->GetCoreValue(meUnit);
mxPaperWidth->SetFieldUnit(meFUnit);
- mxPaperWidth->SetMetricValue(nWidth, meUnit);
SetMarginFieldUnit();
UpdateMarginBox();
}