diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-11-02 11:03:08 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-11-04 19:01:48 +0100 |
commit | 4d493db529600c3ae39b39da0c708c36d679a76b (patch) | |
tree | 86abc8bd45aea8a9a4691b2e2692c450d28d1909 /starmath/source/cfgitem.cxx | |
parent | e126c98bf8ca4be6f4f8018446ab0d6060d731d5 (diff) |
lok: use twips in Math
Change-Id: I11acd281da64b0023d74b3bc02e0f54864b94da9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142275
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath/source/cfgitem.cxx')
-rw-r--r-- | starmath/source/cfgitem.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 9b6a4eadd184..3bf170c0afe4 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -988,7 +988,7 @@ void SmMathConfig::LoadFormat() ++pVal; // StandardFormat/BaseSize if (pVal->hasValue() && (*pVal >>= nTmp16)) - pFormat->SetBaseSize(Size(0, o3tl::convert(nTmp16, o3tl::Length::pt, o3tl::Length::mm100))); + pFormat->SetBaseSize(Size(0, o3tl::convert(nTmp16, o3tl::Length::pt, SmO3tlLengthUnit()))); ++pVal; sal_uInt16 i; @@ -1060,7 +1060,7 @@ void SmMathConfig::SaveFormat() *pValue++ <<= static_cast<sal_Int16>(pFormat->GetHorAlign()); // StandardFormat/BaseSize *pValue++ <<= static_cast<sal_Int16>( - o3tl::convert(pFormat->GetBaseSize().Height(), o3tl::Length::mm100, o3tl::Length::pt)); + o3tl::convert(pFormat->GetBaseSize().Height(), SmO3tlLengthUnit(), o3tl::Length::pt)); sal_uInt16 i; for (i = SIZ_BEGIN; i <= SIZ_END; ++i) |