[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - svx/source

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 24 14:13:15 UTC 2020


 svx/source/sidebar/possize/PosSizePropertyPanel.cxx |    9 +++++++++
 svx/source/sidebar/possize/PosSizePropertyPanel.hxx |    2 ++
 2 files changed, 11 insertions(+)

New commits:
commit 0ebf9a64661622ea01341b82221e44643c41ffce
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Mon Mar 23 15:34:57 2020 -0400
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Mar 24 15:12:33 2020 +0100

    lok: update the measure units if changed
    
    Change-Id: If793e5e678277e27d66e7bcfbf3fbec999e46c63
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90937
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 9b97d56f89ad..b0ebe3fdb16b 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -886,6 +886,15 @@ void PosSizePropertyPanel::executeSize()
     }
 }
 
+boost::property_tree::ptree PosSizePropertyPanel::DumpAsPropertyTree()
+{
+    if (meDlgUnit != GetCurrentUnit(SfxItemState::DEFAULT, nullptr))
+    {
+        mpBindings->Update( SID_ATTR_METRIC );
+    }
+
+    return PanelLayout::DumpAsPropertyTree();
+}
 
 void PosSizePropertyPanel::MetricState( SfxItemState eState, const SfxPoolItem* pState )
 {
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
index 07086e3d3608..8947f0f14a0f 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
@@ -73,6 +73,8 @@ public:
         const SfxPoolItem* pState,
         const bool bIsEnabled) override;
 
+    virtual boost::property_tree::ptree DumpAsPropertyTree() override;
+
     SfxBindings* GetBindings() { return mpBindings;}
 
     // constructor/destructor


More information about the Libreoffice-commits mailing list