Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix saving the title element on paths correctly.

Wolthera van Hövell tot Westerflier04bc5322e1ee
diff --git a/libs/flake/svg/SvgWriter.cpp b/libs/flake/svg/SvgWriter.cpp
index 1556a94977..0febd5eb52 100644
--- a/libs/flake/svg/SvgWriter.cpp
+++ b/libs/flake/svg/SvgWriter.cpp
@@ -230,12 +230,11 @@ void SvgWriter::savePath(KoPathShape *path, SvgSavingContext &context)
context.shapeWriter().addAttribute("id", context.getID(path));
SvgUtil::writeTransformAttributeLazy("transform", path->transformation(), context.shapeWriter());
- SvgStyleWriter::saveMetadata(path, context);
-
SvgStyleWriter::saveSvgStyle(path, context);
context.shapeWriter().addAttribute("d", path->toString(context.userSpaceTransform()));
context.shapeWriter().addAttribute("sodipodi:nodetypes", path->nodeTypes());
+ SvgStyleWriter::saveMetadata(path, context);
context.shapeWriter().endElement();
}