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 Text Tool to show correct contour outlines while cross-layer picking
Dmitry Kazakove31fcb1b3452
diff --git a/libs/ui/tool/kis_tool_utils.cpp b/libs/ui/tool/kis_tool_utils.cppindex ac1838da62..143ccacd4c 100644--- a/libs/ui/tool/kis_tool_utils.cpp+++ b/libs/ui/tool/kis_tool_utils.cpp@@ -345,15 +345,17 @@ namespace KisToolUtils {if (shape && !(currentShapes.contains(shape) && skipCurrentShapes)) {shapeType = shape->shapeId();KoSvgTextShape *t = dynamic_cast<KoSvgTextShape *>(shape);- if (t && isHorizontal) {+ if (t) {p.addRect(t->boundingRect());- *isHorizontal = t->writingMode() == KoSvgText::HorizontalTB;+ if (isHorizontal) {+ *isHorizontal = t->writingMode() == KoSvgText::HorizontalTB;+ }if (!t->shapesInside().isEmpty()) {QPainterPath paths;Q_FOREACH(KoShape *s, t->shapesInside()) {KoPathShape *path = dynamic_cast<KoPathShape *>(s);if (path) {- paths.addPath(t->absoluteTransformation().map(path->absoluteTransformation().map(path->outline())));+ paths.addPath(path->absoluteTransformation().map(path->outline()));}}if (!paths.isEmpty()) {