[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Mar 16 00:56:58 CET 2005


CVS commit by staikos: 

rework update to not trigger if the input vector isn't updated and a force
doesn't happen.


  M +6 -7      kstpsd.cpp   1.25


--- kdeextragear-2/kst/kst/kstpsd.cpp  #1.24:1.25
@@ -221,8 +221,8 @@ KstObject::UpdateType KstPSD::update(int
   if (update_counter <= 0) {
     force = true;
-  } else {
-    iv->update(update_counter);
   }
 
+  bool xUpdated = KstObject::UPDATE == iv->update(update_counter);
+
   _adjustLengths();
 
@@ -233,9 +233,8 @@ KstObject::UpdateType KstPSD::update(int
   _last_n_new += iv->numNew();
 
-  if (_last_n_new < _PSDLen/16          &&
+  if ((!xUpdated || (_last_n_new < _PSDLen/16 &&
       n_subsets - _last_n_subsets < 1   &&
-      iv->length() != iv->numNew()      &&
-      !force                            ) {
-    return NO_CHANGE;
+          iv->length() != iv->numNew())) && !force ) {
+    return setLastUpdateResult(NO_CHANGE);
   }
 




More information about the Kst mailing list