[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Mar 16 00:35:32 CET 2005


CVS commit by staikos: 

Fix two mistakes in previous commit:
1) updating the equation now updates the vectors used so we don't need to do it
explicitly (although no harm...)
2) xVector update was not happening


  M +8 -12     kstequation.cpp   1.25


--- kdeextragear-2/kst/kst/kstequation.cpp  #1.24:1.25
@@ -190,11 +190,4 @@ KstObject::UpdateType KstEquation::updat
   if (update_counter <= 0) {
     force = true;
-  } else {
-    if (*_xVector) {
-      Equation::Context ctx;
-      ctx.sampleCount = _ns;
-      ctx.xVector = *_xVector;
-      xUpdated = KstObject::UPDATE == _pe->update(update_counter, &ctx);
-    }
   }
 
@@ -206,10 +199,13 @@ KstObject::UpdateType KstEquation::updat
   }
 
-  // Update used vectors
-  for (KstVectorMap::Iterator i = VectorsUsed.begin(); i != VectorsUsed.end(); ++i) {
-    usedUpdated = (KstObject::UPDATE == (*i)->update(update_counter)) || usedUpdated;
-  }
-
   KstVectorPtr v = *_xVector;
+
+  xUpdated = KstObject::UPDATE == v->update(update_counter);
+
+  Equation::Context ctx;
+  ctx.sampleCount = _ns;
+  ctx.xVector = v;
+  usedUpdated = KstObject::UPDATE == _pe->update(update_counter, &ctx);
+
   KstObject::UpdateType rc = NO_CHANGE;
   if (force || xUpdated || usedUpdated) {




More information about the Kst mailing list