diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-05-22 15:19:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-05-22 18:04:14 +0200 |
commit | 7a222c57720d550acc760bbcbdc67b33d1d78fb3 (patch) | |
tree | 10f49605d32f8140e738ed620a03845087843215 /sw | |
parent | b5372f4fe3fbcdb0267ab6c5bef9876e851118ff (diff) |
Resolves: tdf#133189 values not updated when units changed
Change-Id: I7028974e9a916a630f5530c65952103ada702212
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94696
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/sidebar/PageFormatPanel.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/PageFormatPanel.cxx b/sw/source/uibase/sidebar/PageFormatPanel.cxx index 7a13c6553fde..969d7d8210da 100644 --- a/sw/source/uibase/sidebar/PageFormatPanel.cxx +++ b/sw/source/uibase/sidebar/PageFormatPanel.cxx @@ -198,8 +198,12 @@ 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(); } |