diff options
Diffstat (limited to 'WebCore/svg/SVGAnimateMotionElement.cpp')
-rw-r--r-- | WebCore/svg/SVGAnimateMotionElement.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/svg/SVGAnimateMotionElement.cpp b/WebCore/svg/SVGAnimateMotionElement.cpp index b50a993..26151ed 100644 --- a/WebCore/svg/SVGAnimateMotionElement.cpp +++ b/WebCore/svg/SVGAnimateMotionElement.cpp @@ -112,9 +112,10 @@ Path SVGAnimateMotionElement::animationPath() const if (child->hasTagName(SVGNames::mpathTag)) { SVGMPathElement* mPath = static_cast<SVGMPathElement*>(child); SVGPathElement* pathElement = mPath->pathElement(); + Path path; if (pathElement) - return pathElement->toPathData(); - return Path(); + pathElement->toPathData(path); + return path; } } if (hasAttribute(SVGNames::pathAttr)) |