[Kst] extragear/graphics/kst/src/libkstmath

George Staikos staikos at kde.org
Mon Oct 16 18:57:36 CEST 2006


SVN commit 596053 by staikos:

don't crash when an equation fails to parse
BUG: 135354


 M  +1 -1      kstequation.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/kstequation.cpp #596052:596053
@@ -211,7 +211,7 @@
   Equation::Context ctx;
   ctx.sampleCount = _ns;
   ctx.xVector = v;
-  usedUpdated = KstObject::UPDATE == _pe->update(update_counter, &ctx);
+  usedUpdated = _pe && KstObject::UPDATE == _pe->update(update_counter, &ctx);
 
   KstObject::UpdateType rc = NO_CHANGE; // if force, rc = UPDATE anyway.
   if (force || xUpdated || usedUpdated) {


More information about the Kst mailing list