Skip to content

Commit

Permalink
LibWeb: SVG: T commands only take two coordinates
Browse files Browse the repository at this point in the history
The shortcut for Bezier curves only takes two coordinates.
  • Loading branch information
danners authored and awesomekling committed Sep 8, 2020
1 parent 05be648 commit 6e61532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/LibWeb/SVG/SVGPathElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void PathDataParser::parse_smooth_quadratic_bezier_curveto()
parse_whitespace();

while (true) {
m_instructions.append({ PathInstructionType::SmoothQuadraticBezierCurve, absolute, parse_coordinate_pair_double() });
m_instructions.append({ PathInstructionType::SmoothQuadraticBezierCurve, absolute, parse_coordinate_pair() });
parse_whitespace();
if (!match_coordinate())
break;
Expand Down

0 comments on commit 6e61532

Please sign in to comment.