From b6ef30d1b049977beb23d28a07d77012fa1daf47 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 13 Feb 2024 18:55:15 +0100 Subject: tdf#159302: Another UNO property "BaseLine" needs to use mm/100s Change-Id: I6688577a41590624f1e1f08112f1308e810a7e37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163333 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- starmath/source/unomodel.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'starmath') diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 8a9207a2244b..805c6566e7f3 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -918,7 +918,9 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu { pDocSh->ArrangeFormula(); - *pValue <<= static_cast( pDocSh->GetFormulaTree()->GetFormulaBaseline() ); + *pValue <<= static_cast( + o3tl::convert(pDocSh->GetFormulaTree()->GetFormulaBaseline(), + SmO3tlLengthUnit(), o3tl::Length::mm100)); } break; } -- cgit v1.2.3