This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch odf-devel in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit efbe32fc4de79d5130a4f2e115d645df5b295f10 Author: Jim Jagielski <[email protected]> AuthorDate: Thu Oct 22 16:26:19 2026 -0400 xmloff: don't write non-positive fo:font-size --- main/xmloff/source/style/chrhghdl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xmloff/source/style/chrhghdl.cxx b/main/xmloff/source/style/chrhghdl.cxx index 56204266e0..c657da6cf3 100644 --- a/main/xmloff/source/style/chrhghdl.cxx +++ b/main/xmloff/source/style/chrhghdl.cxx @@ -73,7 +73,7 @@ sal_Bool XMLCharHeightHdl::exportXML( OUString& rStrExpValue, const uno::Any& rV OUStringBuffer aOut; float fSize = 0; - if( rValue >>= fSize ) + if( ( rValue >>= fSize ) && fSize > 0 ) { SvXMLUnitConverter::convertDouble( aOut, (double)fSize, sal_True, MAP_POINT, MAP_POINT ); aOut.append( sal_Unicode('p'));
