[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    crash on painterly framework
From:       "Ariya Hidayat" <ariya () kde ! org>
Date:       2008-01-29 18:43:56
Message-ID: ba035dd10801291043i3538a04fjb1be605cdaf253a6 () mail ! gmail ! com
[Download RAW message or body]

Hello good people,

For whatever, I need the attached patch to prevent crash when starting
any KOffice application. Is it OK to commit or is this a stupid
workaround?


Regards,

Ariya

["painterly_crash_fix.patch" (text/x-patch)]

Index: krita/plugins/painterlyframework/ks_colorspaces.cpp
===================================================================
--- krita/plugins/painterlyframework/ks_colorspaces.cpp	(revision 768308)
+++ krita/plugins/painterlyframework/ks_colorspaces.cpp	(working copy)
@@ -74,6 +74,8 @@
 #endif
 
     foreach(const KoColorSpace *cs, css) {
+        if(!cs)
+            continue;
         KoHistogramProducerFactoryRegistry::instance()->add(
             new KoBasicHistogramProducerFactory<KoBasicF32HistogramProducer>
             (KoID(cs->id()+"HISTO", i18n(QString("%1 \
Histogram").arg(cs->name()).toUtf8().data())), cs->clone()));



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic