[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Jan 28 06:05:29 CET 2004


CVS commit by staikos: 

make updates for derived vectors work with a huge kludge


  M +20 -0     kstdoc.cpp   1.50


--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.49:1.50
@@ -419,4 +419,24 @@ KstObject::UpdateType KstDoc::update(boo
   }
 
+  /* update all vectors  -  brute force */
+  for (KstVectorList::Iterator it = KST::vectorList.begin(); it != KST::vectorList.end(); ++it) {
+    if (dynamic_cast<KstRVector*>((*it).data())) {
+      continue;
+    }
+
+    tU = (*it)->update(UpdateCounter);
+    if (tU != KstObject::NO_CHANGE) {
+      kapp->processEvents();
+      if (stopping) {
+        return KstObject::NO_CHANGE;
+      }
+      if (tU == KstObject::READ) {
+        U = KstObject::READ;
+      } else if (U == KstObject::NO_CHANGE) {
+        U = KstObject::UPDATE;
+      }
+    }
+  }
+
   // update curves next
   if ((U == KstObject::UPDATE) || force) {





More information about the Kst mailing list