[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Thu Sep 22 13:39:34 CEST 2005


SVN commit 462934 by staikos:

if vectors can be size=1, let's allow resize to go there.


 M  +1 -1      kstvector.cpp  


--- trunk/extragear/graphics/kst/kst/kstvector.cpp #462933:462934
@@ -255,7 +255,7 @@
 
 bool KstVector::resize(int sz, bool reinit) {
   //kdDebug() << "resizing to: " << sz << endl;
-  if (sz > 1) {
+  if (sz > 0) {
     _v = static_cast<double*>(KST::realloc(_v, sz*sizeof(double)));
     if (!_v) {
       return false;


More information about the Kst mailing list