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++

Ensure that the masked glyphs get saved correctly.

Wolthera van Hövell tot Westerflier865719c19cf1
diff --git a/libs/flake/text/KoSvgTextShape_p_output.cpp b/libs/flake/text/KoSvgTextShape_p_output.cpp
index f7e4269880..4be8dd25dd 100644
--- a/libs/flake/text/KoSvgTextShape_p_output.cpp
+++ b/libs/flake/text/KoSvgTextShape_p_output.cpp
@@ -418,6 +418,7 @@ KoSvgTextShape::Private::collectPaths(const KoShape *rootShape, QVector<Characte
KoShape *shape = imageFactory->createShape(&params);
if (bitmapGlyph->image.isGrayscale() || bitmapGlyph->image.format() == QImage::Format_Mono) {
KoShape *rect = rectangleFactory->createDefaultShape();
+ shape->setSize(drawRect.size());
rect->setSize(drawRect.size());
rect->setStroke(nullptr);
KoClipMask *mask = new KoClipMask();