diff options
author | Simon Danner <danner.simon@gmail.com> | 2020-09-07 19:46:20 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-08 13:57:18 +0200 |
commit | 6e61532e06495c18852d66eee1d7ba8f959a9c04 (patch) | |
tree | 0af79928a6aa7ebda3b6f8b0b256f342528fe40b | |
parent | 05be6481b74b9a91897ae54e38f7442c2797fd05 (diff) | |
download | serenity-6e61532e06495c18852d66eee1d7ba8f959a9c04.zip |
LibWeb: SVG: T commands only take two coordinates
The shortcut for Bezier curves only takes two coordinates.
-rw-r--r-- | Libraries/LibWeb/SVG/SVGPathElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Libraries/LibWeb/SVG/SVGPathElement.cpp index 632b4a6996..c1a67834ed 100644 --- a/Libraries/LibWeb/SVG/SVGPathElement.cpp +++ b/Libraries/LibWeb/SVG/SVGPathElement.cpp @@ -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; |