Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ set SVG path visibility=false if display=none

  • Loading branch information...
commit 87ec80b8199e7e461a47947a28b7455cef20ec2b 1 parent 2df8e99
@artemp artemp authored
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);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.