Skip parsing (currently unsupported) <pattern> elements

This commit is contained in:
Artem Pavlenko 2019-05-14 10:20:14 +01:00
parent 88f3b29a92
commit dc15e70f79

View file

@ -402,6 +402,9 @@ void traverse_tree(svg_parser & parser, rapidxml::xml_node<char> const* node)
case "symbol"_case:
parser.ignore_ = true;
break;
case "pattern"_case:
parser.ignore_ = true;
break;
}
if (!parser.is_defs_) // FIXME
@ -497,6 +500,10 @@ void end_element(svg_parser & parser, rapidxml::xml_node<char> const* node)
{
parser.ignore_ = false;
}
else if(name == "pattern"_case)
{
parser.ignore_ = false;
}
}
void parse_element(svg_parser & parser, char const* name, rapidxml::xml_node<char> const* node)