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++
Remove unecessary check that messed up horizontal text-in-shape layout.
Wolthera van Hövell tot Westerflierbebc745313ed
diff --git a/libs/flake/text/KoSvgTextShapeLayoutFunc_inShape.cpp b/libs/flake/text/KoSvgTextShapeLayoutFunc_inShape.cppindex 7bbde824e1..282c10b0cf 100644--- a/libs/flake/text/KoSvgTextShapeLayoutFunc_inShape.cpp+++ b/libs/flake/text/KoSvgTextShapeLayoutFunc_inShape.cpp@@ -586,9 +586,7 @@ QVector<LineBox> flowTextInShapes(const KoSvgTextProperties &properties,for (int i = 0; i < currentLine.chunks.size(); i++) {const LineChunk chunk = currentLine.chunks.at(i);// We have a new line, so we find the first chunk that fits the word.- if ( chunk.length.length() > length- && currentShape.contains(chunk.length.p1())- && currentShape.contains(chunk.length.p2()) ) {+ if ( chunk.length.length() > length ) {currentLine.currentChunk = i;foundFirst = true;needNewLine = false;