fix svg parser to ignore empty groups - closes #1944

This commit is contained in:
Dane Springmeyer 2013-07-10 17:25:34 -04:00
parent 022dd43834
commit 86bc7d6c11
6 changed files with 9 additions and 6 deletions

View file

@ -201,8 +201,11 @@ void start_element(svg_parser & parser, xmlTextReaderPtr reader)
if (xmlStrEqual(name, BAD_CAST "g"))
{
parser.path_.push_attr();
parse_attr(parser,reader);
if (xmlTextReaderIsEmptyElement(reader) == 0)
{
parser.path_.push_attr();
parse_attr(parser,reader);
}
}
else
{

View file

@ -13,16 +13,16 @@
" ",
" ",
" ",
" !! ",
" ",
" ",
" ",
" !! ",
" !!!! ",
" !!!! ",
" !!!! ",
" ",
" ",
" !! ",
" !! ",
" !! ",
" ",
" ",
" ",
" ",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 724 B

After

Width:  |  Height:  |  Size: 525 B