diff options
author | Henry Castro <hcastro@collabora.com> | 2020-03-23 15:34:57 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-05-21 00:40:20 +0200 |
commit | 6d2b3e68c0b2929177ad61fb4b6c377bd44d0829 (patch) | |
tree | acb88a16235f724046b11b28376abc02f7d871a6 /svx | |
parent | b716a4db9945a80e2218ce2eaa8877435cfccfb1 (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94515
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@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 148d8e696be7..5dde7497a0d8 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -866,6 +866,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 2ac505428c36..ab72632649c9 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx @@ -73,6 +73,8 @@ public: const SfxItemState eState, const SfxPoolItem* pState) override; + virtual boost::property_tree::ptree DumpAsPropertyTree() override; + SfxBindings* GetBindings() { return mpBindings;} // constructor/destructor |