[Kst] [Bug 134987] Skipping frames sometimes misses the last point

Adam Treat treat at kde.org
Mon Oct 9 23:24:57 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134987         




------- Additional Comments From treat kde org  2006-10-09 23:24 -------
I think this is a simple off by one error.  The size should be (new_nf / Skip) +1...

As for the other bug, it seems that new_f0 should not be > ReqF0...

   if (DoSkip) {
     // reallocate V if necessary
     //kstdDebug() << "new_nf = " << new_nf << " and skip = " << Skip << " so new_nf/Skip+1 = " << (new_nf / Skip + 1) << endl;
-    if (new_nf / Skip != _size) {
-      bool rc = resize(new_nf/Skip);
+    if (new_nf / Skip +1 != _size) {
+      bool rc = resize(new_nf/Skip +1);
       if (!rc) {
         // FIXME: handle failed resize
       }


More information about the Kst mailing list