From 5ee943a11f46abdd1c0200925a71a8dc19d8965e Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Sun, 31 Jan 2016 20:24:14 +0100 Subject: SVGIO: Return default font size if size value is negative Change-Id: Iec18c6511b57c4e61047055b53589f71dda3d601 Reviewed-on: https://gerrit.libreoffice.org/21972 Tested-by: Jenkins Reviewed-by: Armin Le Grand --- svgio/source/svgreader/svgstyleattributes.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'svgio') diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index f3eec06f3ebe..2ae8a06054a4 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') -- cgit