From 80a1178a085262dd41b557fb1d5de279c6907f3d Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 9 Apr 2012 12:27:19 +0100 Subject: [PATCH] + set SVG path visibility=false if display=none --- src/svg_parser.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/svg_parser.cpp b/src/svg_parser.cpp index e62f45deb..14756b7e2 100644 --- a/src/svg_parser.cpp +++ b/src/svg_parser.cpp @@ -128,7 +128,8 @@ bool parse_style (const char* str, pairs_type & v) svg_parser::svg_parser(svg_converter > & path) : path_(path), - is_defs_(false) {} + is_defs_(false) +{} svg_parser::~svg_parser() {} @@ -367,6 +368,10 @@ void svg_parser::parse_attr(const xmlChar * name, const xmlChar * value ) { path_.visibility(!xmlStrEqual(value, BAD_CAST "hidden")); } + else if (xmlStrEqual(name, BAD_CAST "display") && xmlStrEqual(value, BAD_CAST "none")) + { + path_.visibility(false); + } }