SVG circle: ignore when r = 0
This commit is contained in:
parent
55370c3453
commit
0feabeb7e8
1 changed files with 3 additions and 3 deletions
|
@ -1168,7 +1168,6 @@ void parse_circle(svg_parser & parser, rapidxml::xml_node<char> const* node)
|
||||||
if (percent && parser.vbox_) r *= parser.normalized_diagonal_;
|
if (percent && parser.vbox_) r *= parser.normalized_diagonal_;
|
||||||
}
|
}
|
||||||
|
|
||||||
parser.path_.begin_path();
|
|
||||||
if (r != 0.0)
|
if (r != 0.0)
|
||||||
{
|
{
|
||||||
if (r < 0.0)
|
if (r < 0.0)
|
||||||
|
@ -1179,12 +1178,13 @@ void parse_circle(svg_parser & parser, rapidxml::xml_node<char> const* node)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
parser.path_.begin_path();
|
||||||
agg::ellipse c(cx, cy, r, r);
|
agg::ellipse c(cx, cy, r, r);
|
||||||
parser.path_.storage().concat_path(c);
|
parser.path_.storage().concat_path(c);
|
||||||
}
|
|
||||||
}
|
|
||||||
parser.path_.end_path();
|
parser.path_.end_path();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void parse_ellipse(svg_parser & parser, rapidxml::xml_node<char> const * node)
|
void parse_ellipse(svg_parser & parser, rapidxml::xml_node<char> const * node)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue