https://bugs.kde.org/show_bug.cgi?id=412508
--- Comment #1 from Wolfgang Bauer <wba...@tmo.at> --- Introduced by https://cgit.kde.org/krita.git/commit/?h=krita/4.2&id=9604f0549d8b63d9e646853e9294a8cf450a96d2 . This should fix it: (untested) diff --git a/libs/flake/text/KoSvgTextShape.cpp b/libs/flake/text/KoSvgTextShape.cpp index 6ad42a4..b558a44 100644 --- a/libs/flake/text/KoSvgTextShape.cpp +++ b/libs/flake/text/KoSvgTextShape.cpp @@ -381,7 +381,11 @@ private: KIS_SAFE_ASSERT_RECOVER_NOOP(skippedChar.isSpace() || !skippedChar.isPrint()); QFontMetrics metrics(format.font()); +#if QT_VERSION >= QT_VERSION_CHECK(5,11,0) return metrics.horizontalAdvance(skippedChar); +#else + return metrics.width(skippedChar); +#endif } static QTextCharFormat formatForPos(int pos, const QVector<QTextLayout::FormatRange> &formats) -- You are receiving this mail because: You are watching all bug changes.