Permalink
Browse files

+ set SVG path visibility=false if display=none

  • Loading branch information...
1 parent f727cb8 commit 80a1178a085262dd41b557fb1d5de279c6907f3d @artemp artemp committed Apr 9, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/svg_parser.cpp
View
7 src/svg_parser.cpp
@@ -128,7 +128,8 @@ bool parse_style (const char* str, pairs_type & v)
svg_parser::svg_parser(svg_converter<svg_path_adapter,
agg::pod_bvector<mapnik::svg::path_attributes> > & 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);
+ }
}

0 comments on commit 80a1178

Please sign in to comment.