svgio/source/svgreader/svgstyleattributes.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 5ee943a11f46abdd1c0200925a71a8dc19d8965e Author: Xisco Fauli <[email protected]> Date: Sun Jan 31 20:24:14 2016 +0100 SVGIO: Return default font size if size value is negative Change-Id: Iec18c6511b57c4e61047055b53589f71dda3d601 Reviewed-on: https://gerrit.libreoffice.org/21972 Tested-by: Jenkins <[email protected]> Reviewed-by: Armin Le Grand <[email protected]> diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index f3eec06..2ae8a06 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -2355,6 +2355,9 @@ namespace svgio if(maFontSizeNumber.isSet()) { + if(!maFontSizeNumber.isPositive()) + return aDefaultSize; + // #122524# Handle Unit_percent realtive to parent FontSize (see SVG1.1 // spec 10.10 Font selection properties \91font-size\92, lastline (click 'normative // definition of the property') _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
