[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Apr 14 18:22:17 CEST 2004


CVS commit by arwalker: 

Ensure that we don't add a NULL pointer to the exclusive list.


  M +4 -1      kstobject.h   1.23


--- kdeextragear-2/kst/kst/kstobject.h  #1.22:1.23
@@ -159,5 +159,8 @@ void kstObjectSplitList(KstObjectList<Ks
       inclusive.append(x);
     } else {
-      exclusive.append(x);
+      T *y = dynamic_cast<T*>((*it).data());
+      if (y != 0L) {
+        exclusive.append(y);
+      }
     }
   }





More information about the Kst mailing list