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

Xisco Fauli anistenis at gmail.com
Tue May 31 07:39:34 UTC 2016


 svgio/source/svgreader/svgstyleattributes.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5d613f920510a5a16ddb50c1577d8c29f1a8e069
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Tue May 31 00:37:20 2016 +0200

    SVGIO: Add support for "inherit" in font-family
    
    Change-Id: I180ab3b119af124d2d1113df055986168d39d30d
    Reviewed-on: https://gerrit.libreoffice.org/25694
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Xisco FaulĂ­ <anistenis at gmail.com>

diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index db20d64..59c0d46 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -2334,7 +2334,7 @@ namespace svgio
 
         const SvgStringVector& SvgStyleAttributes::getFontFamily() const
         {
-            if(!maFontFamily.empty())
+            if(!maFontFamily.empty() && !maFontFamily[0].startsWith("inherit"))
             {
                 return maFontFamily;
             }


More information about the Libreoffice-commits mailing list