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 issue with rotation character transforms getting overwritten.
Wolthera van Hövell tot Westerflier41257f2937f6
diff --git a/libs/flake/text/KoSvgTextShape_p_layout.cpp b/libs/flake/text/KoSvgTextShape_p_layout.cppindex 395a2d75ad..541c4a2f42 100644--- a/libs/flake/text/KoSvgTextShape_p_layout.cpp+++ b/libs/flake/text/KoSvgTextShape_p_layout.cpp@@ -860,7 +860,6 @@ void KoSvgTextShape::Private::resolveTransforms(KisForest<KoSvgTextContentElemenQVector<KoSvgText::CharTransformation> local = currentTextElement->localTransformations;- int i = 0;int index = currentIndex;int j = index + numChars(currentTextElement, true, resolvedProps);@@ -868,6 +867,7 @@ void KoSvgTextShape::Private::resolveTransforms(KisForest<KoSvgTextContentElemenif (currentTextElement->textPath) {textInPath = true;} else {+ int i = 0;for (int k = index; k < j; k++ ) {if (k >= text.size()) {continue;@@ -895,7 +895,7 @@ void KoSvgTextShape::Private::resolveTransforms(KisForest<KoSvgTextContentElemenresolved[k] = newTransform;i += 1;} else if (k > 0) {- if (resolved[k - 1].rotate) {+ if (resolved[k - 1].rotate && !resolved[k].rotate) {resolved[k].rotate = resolved[k - 1].rotate;}}