1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

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

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;