[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri May 22 16:04:56 UTC 2020


 sw/source/uibase/sidebar/PageFormatPanel.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 7a222c57720d550acc760bbcbdc67b33d1d78fb3
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri May 22 15:19:53 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri May 22 18:04:14 2020 +0200

    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 at redhat.com>

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();
             }


More information about the Libreoffice-commits mailing list