summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-22 19:44:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-22 22:01:01 +0200
commitec11b7330fab72dc56d847c7c3691fddbb18096e (patch)
treed91ef1cbd0f38ca1212aba5ab9fb81ec923c7815 /sw
parentfcce0642c101429247a8be886df5a469aeb390a2 (diff)
Related: tdf#133189 values not updated when units changed
do it for all of them, not just the writer one. A braver move. Change-Id: Ib1f635ccc6a70c1ef00f82449bd351c82da7a13d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94707 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-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();
}