[Libreoffice-commits] core.git: svgio/source

Xisco Fauli anistenis at gmail.com
Mon Feb 8 14:33:36 UTC 2016


 svgio/source/svgreader/svgstyleattributes.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5ee943a11f46abdd1c0200925a71a8dc19d8965e
Author: Xisco Fauli <anistenis at gmail.com>
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 <ci at libreoffice.org>
    Reviewed-by: Armin Le Grand <Armin.Le.Grand at cib.de>

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')


More information about the Libreoffice-commits mailing list