[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Fri Aug 13 05:59:55 CEST 2004


CVS commit by netterfield: 

fix for Bug 87048: update of fits to histogram does not update properly

update all non-kstvcurve objects before updating curves.

previous behavior was to update plugins before all other objects, which was
probably unintentional.

CCMAIL: 87048-done at bugs.kde.org


  M +4 -4      updatethread.cpp   1.24


--- kdeextragear-2/kst/kst/updatethread.cpp  #1.23:1.24
@@ -22,5 +22,5 @@
 #include <kdebug.h>
 
-#include "kstbasecurve.h"
+#include "kstvcurve.h"
 #include "kstdatacollection.h"
 #include "kstdoc.h"
@@ -205,7 +205,7 @@ bool UpdateThread::doUpdates(bool force,
   {
     // Must make a copy to avoid deadlock
-    KstBaseCurveList cl;
+    KstVCurveList cl;
     KstDataObjectList ncl;
-    kstObjectSplitList<KstDataObject,KstBaseCurve>(KST::dataObjectList, cl, ncl);
+    kstObjectSplitList<KstDataObject,KstVCurve>(KST::dataObjectList, cl, ncl);
 
     // Update all data objects that are not curves
@@ -235,5 +235,5 @@ bool UpdateThread::doUpdates(bool force,
     if (U == KstObject::UPDATE || force) {
       for (i = 0; i < cl.count(); ++i) {
-        KstBaseCurvePtr bcp = cl[i];
+        KstVCurvePtr bcp = cl[i];
         assert(bcp.data());
 #if UPDATEDEBUG > 0





More information about the Kst mailing list