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++
Turn assert into early return, as it is also used to search the font axes for style info.
Wolthera van Hövell tot Westerflierb81adc4e3175
diff --git a/libs/flake/text/KoCssTextUtils.cpp b/libs/flake/text/KoCssTextUtils.cppindex e3954cdc35..6bde694f5b 100644--- a/libs/flake/text/KoCssTextUtils.cpp+++ b/libs/flake/text/KoCssTextUtils.cpp@@ -577,7 +577,7 @@ void KoCssTextUtils::removeText(QString &text, int &start, int length)qreal KoCssTextUtils::cssSelectFontStyleValue(const QVector<qreal> &values, const qreal targetValue, const qreal defaultValue, const qreal defaultValueUpper, const bool shouldNotReturnDefault){- KIS_SAFE_ASSERT_RECOVER(!values.isEmpty()) {+ if(values.isEmpty()) {return defaultValue;}// follow the CSS Fonts selection mechanism.