starmath/source/unomodel.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit a224f85c9bb9ab0a2e5a833dcb5ebb3eab4d7ea3
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Tue Feb 13 18:55:15 2024 +0100
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Sun Feb 25 14:31:34 2024 +0100

    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 <mike.kagan...@collabora.com>
    (cherry picked from commit b6ef30d1b049977beb23d28a07d77012fa1daf47)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163339
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    (cherry picked from commit df41d922ef7e6c99f72d65dad04b56c82a79ae30)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163340
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Tested-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>

diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index ea12928d3dbc..874dfb599af7 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -916,7 +916,9 @@ void SmModel::_getPropertyValues( const PropertyMapEntry 
**ppEntries, Any *pValu
                 {
                     pDocSh->ArrangeFormula();
 
-                    *pValue <<= static_cast<sal_Int32>( 
pDocSh->GetFormulaTree()->GetFormulaBaseline() );
+                    *pValue <<= static_cast<sal_Int32>(
+                        
o3tl::convert(pDocSh->GetFormulaTree()->GetFormulaBaseline(),
+                                      SmO3tlLengthUnit(), 
o3tl::Length::mm100));
                 }
                 break;
             }

Reply via email to