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

Also paint non-gradients for text-decoration strokes.

Wolthera van Hövell tot Westerfliercad1bc23c0e5
diff --git a/libs/flake/text/KoSvgTextShape_p_output.cpp b/libs/flake/text/KoSvgTextShape_p_output.cpp
index 58b44ed01a..539572629c 100644
--- a/libs/flake/text/KoSvgTextShape_p_output.cpp
+++ b/libs/flake/text/KoSvgTextShape_p_output.cpp
@@ -130,6 +130,11 @@ void KoSvgTextShape::Private::paintTextDecoration(QPainter &painter, const QPain
maskStroke->paint(shape.data(), *strokePainter.maskPainter());
}
strokePainter.renderOnGlobalPainter();
+ } else {
+ {
+ QScopedPointer<KoShape> shape(KoPathShape::createShapeFromPainterPath(decorPath));
+ stroke->paint(shape.data(), painter);
+ }
}
}
}