LibWeb: SVG: T commands only take two coordinates

The shortcut for Bezier curves only takes two coordinates.
This commit is contained in:
Simon Danner 2020-09-07 19:46:20 +02:00 committed by Andreas Kling
parent 05be6481b7
commit 6e61532e06
Notes: sideshowbarker 2024-07-19 02:50:27 +09:00

View file

@ -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;