https://bugs.kde.org/show_bug.cgi?id=383273
Boudewijn Rempt <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Status|UNCONFIRMED |NEEDSINFO Resolution|--- |WAITINGFORINFO --- Comment #2 from Boudewijn Rempt <[email protected]> --- I think that this commit fixed it: commit a9629cc52afa1a1b965c926cab7e96928e0e84d1 Author: Wolthera van Hövell tot Westerflier <[email protected]> Date: Tue Aug 1 18:21:04 2017 +0200 Add some extra checks to prevent crashes in paletteModel diff --git a/libs/ui/KisPaletteModel.cpp b/libs/ui/KisPaletteModel.cpp index fc18a79964..0c556e23fa 100644 --- a/libs/ui/KisPaletteModel.cpp +++ b/libs/ui/KisPaletteModel.cpp @@ -337,7 +337,14 @@ int KisPaletteModel::idFromIndex(const QModelIndex &index) const KoColorSetEntry KisPaletteModel::colorSetEntryFromIndex(const QModelIndex &index) const { + KoColorSetEntry blank = KoColorSetEntry; + if (!index.isValid()) { + return blank; + } QStringList entryList = qVariantValue<QStringList>(data(index, RetrieveEntryRole)); + if (entryList.isEmpty()) { + return blank; + } QString groupName = entryList.at(0); quint32 indexInGroup = entryList.at(1).toUInt(); return m_colorSet->getColorGroup(indexInGroup, groupName) Can you check? -- You are receiving this mail because: You are watching all bug changes.
