summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-01-31 20:24:14 +0100
committerArmin Le Grand <Armin.Le.Grand@cib.de>2016-02-08 14:33:14 +0000
commit5ee943a11f46abdd1c0200925a71a8dc19d8965e (patch)
treea252da4e009c51ef3593eed6935b2da5e619e155 /svgio
parentd22daad5ddf9adbbfab473101ef225b409f6c21f (diff)
SVGIO: Return default font size if size value is negative
Change-Id: Iec18c6511b57c4e61047055b53589f71dda3d601 Reviewed-on: https://gerrit.libreoffice.org/21972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx3
1 files changed, 3 insertions, 0 deletions
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')