[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Fri Sep 30 19:35:43 CEST 2005


SVN commit 465742 by staikos:

forward port: found legitimate case for this state


 M  +3 -2      kstrvector.cpp  


--- trunk/extragear/graphics/kst/kst/kstrvector.cpp #465741:465742
@@ -584,8 +584,9 @@
     } else {
       //kdDebug() << "Reading into _v=" << (void*)_v << " which has size " << _size << " and starting at offset " << NF*SPF << " for s=" << new_f0 + NF << " and n=" << new_nf - NF << endl;
       assert(new_f0 + NF >= 0);
-      assert(new_nf - NF > 0 || new_nf - NF == -1);
-      n_read = _file->readField(_v+NF*SPF, _field, new_f0 + NF, new_nf - NF);
+      if (new_nf - NF > 0 || new_nf - NF == -1) {
+        n_read = _file->readField(_v+NF*SPF, _field, new_f0 + NF, new_nf - NF);
+      }
     }
   }
 


More information about the Kst mailing list