diff options
author | Henry Castro <hcastro@collabora.com> | 2020-03-23 15:34:57 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-03-24 15:12:33 +0100 |
commit | 0ebf9a64661622ea01341b82221e44643c41ffce (patch) | |
tree | cc41f46a74855a288b38d10e5e983493d707f410 /svx | |
parent | ea3df44acc9da8dd91b1e5a6638822db3a5f391b (diff) |
lok: update the measure units if changed
Change-Id: If793e5e678277e27d66e7bcfbf3fbec999e46c63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90937
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 9 | ||||
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.hxx | 2 |
2 files changed, 11 insertions, 0 deletions
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 |