From 6e61532e06495c18852d66eee1d7ba8f959a9c04 Mon Sep 17 00:00:00 2001 From: Simon Danner Date: Mon, 7 Sep 2020 19:46:20 +0200 Subject: [PATCH] LibWeb: SVG: T commands only take two coordinates The shortcut for Bezier curves only takes two coordinates. --- Libraries/LibWeb/SVG/SVGPathElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;