mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: SVG: T commands only take two coordinates
The shortcut for Bezier curves only takes two coordinates.
This commit is contained in:
parent
05be6481b7
commit
6e61532e06
Notes:
sideshowbarker
2024-07-19 02:50:27 +09:00
Author: https://github.com/danners
Commit: 6e61532e06
Pull-request: https://github.com/SerenityOS/serenity/pull/3434
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ void PathDataParser::parse_smooth_quadratic_bezier_curveto()
|
||||||
parse_whitespace();
|
parse_whitespace();
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
m_instructions.append({ PathInstructionType::SmoothQuadraticBezierCurve, absolute, parse_coordinate_pair_double() });
|
m_instructions.append({ PathInstructionType::SmoothQuadraticBezierCurve, absolute, parse_coordinate_pair() });
|
||||||
parse_whitespace();
|
parse_whitespace();
|
||||||
if (!match_coordinate())
|
if (!match_coordinate())
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue