diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-02-05 11:33:26 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-02-05 13:00:10 +0100 |
commit | 017ae620604de06414dc3f780804c241b87e45c6 (patch) | |
tree | df8538d3833894d1f83268f411dba571d4cbbba7 /sfx2/source | |
parent | b7399c4290b2b2d3fa9c81b2c1341290c1b9567a (diff) |
lok: writer: Convert row height / cloumn width to the correct unit.
In online, the mobile wizad displayed these attributes in the wrong
unit.
Change-Id: I165a8ee17bebbbfd8962ac9addc89df39c77851a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88004
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 36f6e5d4250b..28276ddf3df7 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1205,6 +1205,18 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c } } } + else if (aEvent.FeatureURL.Path == "TableColumWidth" || + aEvent.FeatureURL.Path == "TableRowHeight") + { + sal_Int32 nValue; + if (aEvent.State >>= nValue) + { + float nScaleValue = 1000.0; + nValue *= nScaleValue; + sal_Int32 nConvertedValue = OutputDevice::LogicToLogic(nValue, MapUnit::MapTwip, MapUnit::MapInch); + aBuffer.append(OUString::number(nConvertedValue / nScaleValue)); + } + } else { // Try to send JSON state version |