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 14:17:37 +0100 |
commit | 0aee4f53bd9634d4a320578ab714f179bcc675e0 (patch) | |
tree | 94c06c85f473ac883c04bff6e56455e6611a8266 | |
parent | ea63519d88fa111001fd2043e786b54d2f285de1 (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>
(cherry picked from commit 017ae620604de06414dc3f780804c241b87e45c6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88014
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-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 7b8d6d101df8..b95ed01dc784 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 |