[graphics/krita/krita/6.0] libs/flake/text: Also handle potential crash when retrieving representation for a single family.
Wolthera van Hövell <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2c0a911c7917f9ab764491e5b0d824dee9665530 by Wolthera van Hövell. Committed on 17/08/2026 at 11:28. Pushed by woltherav into branch 'krita/6.0'. Also handle potential crash when retrieving representation for a single family. CCBUG:523857 (cherry picked from commit 8451f9754ce311ab07610a51f13a0a7bf2db846c) Co-authored-by: Wolthera van Hövell tot Westerflier <[email protected]> M +1 -0 libs/flake/text/KoFFWWSConverter.cpp https://invent.kde.org/graphics/krita/-/commit/2c0a911c7917f9ab764491e5b0d824dee9665530 diff --git a/libs/flake/text/KoFFWWSConverter.cpp b/libs/flake/text/KoFFWWSConverter.cpp index 817241db585..53f5b29f2e9 100644 --- a/libs/flake/text/KoFFWWSConverter.cpp +++ b/libs/flake/text/KoFFWWSConverter.cpp @@ -1078,6 +1078,7 @@ std::optional<KoFontFamilyWWSRepresentation> KoFFWWSConverter::representationByF { for (auto typographic = d->fontFamilyCollection.childBegin(); typographic != d->fontFamilyCollection.childEnd(); typographic++) { auto counter = childBegin(typographic); + if (counter == childEnd(typographic)) continue; counter++; bool singleFamily = counter == childEnd(typographic);