xmloff/qa/unit/draw.cxx | 6 +++++- xmloff/source/draw/ximpcustomshape.cxx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)
New commits: commit b532d79f39ae047d2f59535679230a8d053b5b35 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Sep 26 16:46:07 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Sep 26 19:15:05 2024 +0200 tdf#162687: ODF 1.4: fix import Change-Id: Ic728c1c92ff5815c0780ba18e1a473d26e13e63f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173993 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/xmloff/qa/unit/draw.cxx b/xmloff/qa/unit/draw.cxx index 9b61b488e3e0..1fa27f9789e3 100644 --- a/xmloff/qa/unit/draw.cxx +++ b/xmloff/qa/unit/draw.cxx @@ -611,13 +611,17 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testExtrusionSpecularityStrict) const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion(GetODFDefaultVersion()); SetODFDefaultVersion(SvtSaveOptions::ODFVER_014); - save(u"writer8"_ustr); + saveAndReload(u"writer8"_ustr); // assert XML. xmlDocUniquePtr pXmlDoc = parseExport(u"content.xml"_ustr); assertXPath(pXmlDoc, "//draw:enhanced-geometry[@draw:extrusion-specularity='122.0703125']"_ostr); + // verify properties + uno::Reference<drawing::XShape> xShapeReload(getShape(0)); + lcl_assertSpecularityProperty("from ODF 1.4", xShapeReload); + SetODFDefaultVersion(nCurrentODFVersion); } diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx index 28aa08d09a1d..91fcea59b321 100644 --- a/xmloff/source/draw/ximpcustomshape.cxx +++ b/xmloff/source/draw/ximpcustomshape.cxx @@ -1150,7 +1150,7 @@ void XMLEnhancedCustomShapeContext::startFastElement( } } if (oSpecularityValue) - GetDoublePercentage( maExtrusion, *oSpecularityValue, EAS_Specularity ); + GetDouble( maExtrusion, *oSpecularityValue, EAS_Specularity ); if (oPathValue) GetEnhancedPath(maPath, *oPathValue, sType); }