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

PSD text: fix text-on-path start offset

Wolthera van Hövell tot Westerflierb413f955d476
diff --git a/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp b/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp
index 472fc07629..ee354fc023 100644
--- a/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp
+++ b/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp
@@ -2076,7 +2076,7 @@ bool KoSvgTextShapeMarkupConverter::convertPSDTextEngineDataToSVG(const QVariant
if (i < segment) {
length += l;
} else if (i == segment) {
- length += (l*t);
+ length += textShape->segmentByIndex(KoPathPointIndex(0, i)).lengthAt(t);
}
}
textPathStartOffset = (length/totalLength) * 100.0;