[graphics/krita] libs/flake/text: Try to fix crash in KoFFWWSConverter
Wolthera van Hövell tot Westerflier <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 68dd1ae15a9cbd4bbe7825e6c03e04b3380a05e5 by Wolthera van Hövell tot Westerflier.
Committed on 05/08/2026 at 12:40.
Pushed by woltherav into branch 'master'.
Try to fix crash in KoFFWWSConverter
BUG:523857
M +1 -0 libs/flake/text/KoFFWWSConverter.cpp
https://invent.kde.org/graphics/krita/-/commit/68dd1ae15a9cbd4bbe7825e6c03e04b3380a05e5
diff --git a/libs/flake/text/KoFFWWSConverter.cpp b/libs/flake/text/KoFFWWSConverter.cpp
index 6fc6f775910..817241db585 100644
--- a/libs/flake/text/KoFFWWSConverter.cpp
+++ b/libs/flake/text/KoFFWWSConverter.cpp
@@ -1017,6 +1017,7 @@ QList<KoFontFamilyWWSRepresentation> KoFFWWSConverter::collectFamilies() const
QList<KoFontFamilyWWSRepresentation> collection;
for (auto typographic = d->fontFamilyCollection.childBegin(); typographic != d->fontFamilyCollection.childEnd(); typographic++) {
auto counter = childBegin(typographic);
+ if (counter == childEnd(typographic)) continue;
counter++;
bool singleFamily = childBegin(typographic) != childEnd(typographic) && std::next(childBegin(typographic)) == childEnd(typographic);