[Kst] branches/work/kst/1.1/kst/kst
George Staikos
staikos at kde.org
Thu Sep 22 13:39:55 CEST 2005
SVN commit 462935 by staikos:
backport: allow vectors of size 1
M +1 -1 kstvector.cpp
--- branches/work/kst/1.1/kst/kst/kstvector.cpp #462934:462935
@@ -249,7 +249,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