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++
Text: avoid potential assert when checking the text type.
Wolthera van Hövell tot Westerflier9db45d262669
diff --git a/libs/flake/text/KoSvgTextShape.cpp b/libs/flake/text/KoSvgTextShape.cppindex 71b9f944bb..0baeede7d5 100644--- a/libs/flake/text/KoSvgTextShape.cpp+++ b/libs/flake/text/KoSvgTextShape.cpp@@ -2324,7 +2324,7 @@ KoShape * KoSvgTextShape::textOutline() constKoSvgTextShape::TextType KoSvgTextShape::textType() const{- KoSvgText::AutoValue inlineSize = d->textData.childBegin()->properties.propertyOrDefault(KoSvgTextProperties::InlineSizeId).value<KoSvgText::AutoValue>();+ KoSvgText::AutoValue inlineSize = this->textProperties().propertyOrDefault(KoSvgTextProperties::InlineSizeId).value<KoSvgText::AutoValue>();if (!d->shapesInside.isEmpty()) {return TextType::TextInShape;} else if (!inlineSize.isAuto) {