summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Danner <danner.simon@gmail.com>2020-09-07 19:46:20 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-08 13:57:18 +0200
commit6e61532e06495c18852d66eee1d7ba8f959a9c04 (patch)
tree0af79928a6aa7ebda3b6f8b0b256f342528fe40b
parent05be6481b74b9a91897ae54e38f7442c2797fd05 (diff)
downloadserenity-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.cpp2
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;