diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-15 16:03:38 +0300 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-12-18 11:33:55 +0100 |
commit | 3d0a2278aca97370cb22d0d91f746116be2231b1 (patch) | |
tree | 9a9b5cf0d8ab4401e2f55c5be655c54d78d57285 /starmath | |
parent | 0034d2ab9382da86340738137218791a4ccc9c90 (diff) |
tdf#157569: FormulaImExportBase::getFormulaSize should return mm/100
Similar to commit 798d21e2a1b8bc48b6bb5e1b3cf0cba0e5882a59 (tdf#157965:
UNO methods are expected to return sizes in mm/100, 2023-10-29); this
was an omission from commit 9e92a17cb6e03beedeeca40bfc8524c2623d31eb
(starmath: Improve glyph positioning, 2023-09-19).
The method is called in DomainMapper_Impl::appendStarMath(), and the
returned value is used to define object size using UNO methods.
Change-Id: I37cc4d5dd18641915495b97f0d99fa10a805e18c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160827
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 80b67e776ae26d60e0935fcc57a8ff6c983bdd15)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160852
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/unomodel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index ea1d55793e5b..ea12928d3dbc 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -1103,7 +1103,7 @@ void SmModel::readFormulaOoxml( oox::formulaimport::XmlStream& stream ) Size SmModel::getFormulaSize() const { - return static_cast< SmDocShell* >( GetObjectShell())->GetSize(); + return o3tl::convert(static_cast< SmDocShell* >( GetObjectShell())->GetSize(), SmO3tlLengthUnit(), o3tl::Length::mm100); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |