[Kst] branches/kst/1.3/kst/src/libkstmath
George Staikos
staikos at kde.org
Mon Oct 16 18:59:05 CEST 2006
SVN commit 596055 by staikos:
don't crash on unparsable equations
M +1 -1 kstequation.cpp
--- branches/kst/1.3/kst/src/libkstmath/kstequation.cpp #596054:596055
@@ -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