Skip parsing (currently unsupported) <pattern> elements
This commit is contained in:
parent
88f3b29a92
commit
dc15e70f79
1 changed files with 7 additions and 0 deletions
|
@ -402,6 +402,9 @@ void traverse_tree(svg_parser & parser, rapidxml::xml_node<char> const* node)
|
||||||
case "symbol"_case:
|
case "symbol"_case:
|
||||||
parser.ignore_ = true;
|
parser.ignore_ = true;
|
||||||
break;
|
break;
|
||||||
|
case "pattern"_case:
|
||||||
|
parser.ignore_ = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parser.is_defs_) // FIXME
|
if (!parser.is_defs_) // FIXME
|
||||||
|
@ -497,6 +500,10 @@ void end_element(svg_parser & parser, rapidxml::xml_node<char> const* node)
|
||||||
{
|
{
|
||||||
parser.ignore_ = false;
|
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)
|
void parse_element(svg_parser & parser, char const* name, rapidxml::xml_node<char> const* node)
|
||||||
|
|
Loading…
Reference in a new issue