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++
Fix clunky check for single WWS family within a typographic family.
Wolthera van Hövell56e1c5fb3181
diff --git a/libs/flake/text/KoFFWWSConverter.cpp b/libs/flake/text/KoFFWWSConverter.cppindex 239ef9d726..35de609087 100644--- a/libs/flake/text/KoFFWWSConverter.cpp+++ b/libs/flake/text/KoFFWWSConverter.cpp@@ -843,7 +843,7 @@ QList<KoFontFamilyWWSRepresentation> KoFFWWSConverter::collectFamilies() constfor (auto typographic = d->fontFamilyCollection.childBegin(); typographic != d->fontFamilyCollection.childEnd(); typographic++) {auto counter = childBegin(typographic);counter++;- bool singleFamily = counter == childEnd(typographic);+ bool singleFamily = childBegin(typographic) != childEnd(typographic) && std::next(childBegin(typographic)) == childEnd(typographic);for (auto wws = childBegin(typographic); wws != childEnd(typographic); wws++) {