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++
Make arrows for text-in-shape follow the shape-inside order, and not the rendering order.
Wolthera van Hövell tot Westerfliera3bb07a8622d
diff --git a/libs/flake/text/KoSvgTextShapeOutlineHelper.cpp b/libs/flake/text/KoSvgTextShapeOutlineHelper.cppindex c4cd76f5a8..1a13cc2914 100644--- a/libs/flake/text/KoSvgTextShapeOutlineHelper.cpp+++ b/libs/flake/text/KoSvgTextShapeOutlineHelper.cpp@@ -125,13 +125,14 @@ void KoSvgTextShapeOutlineHelper::paintTextShape(QPainter *painter, const KoViewhelper.setHandleStyle(KisHandleStyle::secondarySelection());if (contourModeActive) {if (d->drawOutline) {- QList<QPainterPath> areas;+Q_FOREACH(KoShape *shape, text->internalShapeManager()->shapes()) {QPainterPath p = shape->transformation().map(shape->outline());helper.drawPath(p);- if (!d->drawTextWrappingArea && text->shapesInside().contains(shape)) {- areas.append(p);- }+ }+ QList<QPainterPath> areas;+ Q_FOREACH(const KoShape *shape, text->shapesInside()) {+ areas.append(shape->transformation().map(shape->outline()));}Q_FOREACH(QLineF arrow, getTextAreaOrderArrows(areas)) {helper.drawGradientArrow(arrow.p1(), arrow.p2(), 1.5 * d->handleRadius);