[Kst] kdeextragear-2/kst/kst/datasources/planck

George Staikos staikos at kde.org
Mon Jan 17 09:17:57 CET 2005


CVS commit by staikos: 

fix some bugs in skipping - still there is one little error


  M +3 -3      planck.cpp   1.28


--- kdeextragear-2/kst/kst/datasources/planck/planck.cpp  #1.27:1.28
@@ -117,6 +117,6 @@ int PlanckSource::readField(double *v, c
       return 1;
     }
-    for (int i = 1; i <= n; ++i) {
-      v[i - 1] = double(s + i*skip);
+    for (int i = 0; i < n; ++i) {
+      v[i] = double(s + i*skip);
     }
     if (*lastFrameRead) {
@@ -159,5 +159,5 @@ int PlanckSource::readField(double *v, c
   while (rctmp > skip) {
     rctmp -= skip;
-    v[i] = tmp[(i + 1) * skip];
+    v[i] = tmp[i * skip];
     ++i;
   }




More information about the Kst mailing list