summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
index 8387f031b2..d4723ba21c 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
+++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
@@ -88,12 +88,14 @@ SVGPathElement::SVGPathElement(DOM::Document& document, QualifiedName qualified_
{
}
-void SVGPathElement::parse_attribute(const FlyString& name, const String& value)
+void SVGPathElement::parse_attribute(FlyString const& name, String const& value)
{
SVGGeometryElement::parse_attribute(name, value);
- if (name == "d")
+ if (name == "d") {
m_instructions = AttributeParser::parse_path_data(value);
+ m_path.clear();
+ }
}
Gfx::Path& SVGPathElement::get_path()