https://bugs.kde.org/show_bug.cgi?id=475562

--- Comment #6 from Halla Rempt <ha...@valdyas.org> ---
I know... But even so, there isn't much testing we can do, since it doesn't
happen elsewhere. The only guess I can make is that this patch might help, but
I cannot test it:

diff --git a/libs/widgets/KisVisualColorModel.cpp
b/libs/widgets/KisVisualColorModel.cpp
index 943eb0a93a..d9d6206031 100644
--- a/libs/widgets/KisVisualColorModel.cpp
+++ b/libs/widgets/KisVisualColorModel.cpp
@@ -78,6 +78,8 @@ void KisVisualColorModel::slotSetColor(const KoColor &c)

 void KisVisualColorModel::slotSetColorSpace(const KoColorSpace *cs)
 {
+    if (!cs) return;
+
     if (!m_d->currentCS || *m_d->currentCS != *cs) {
         const KoColorSpace *csNew = cs;

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to