[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Sep 30 17:59:49 CEST 2004


CVS commit by staikos: 

proper fix for mamd's updating issues.
Barth: this NFS fix hack causes issues for vectors with no data because 0 != 1
in all cases that I know of. :-)  Will this fix circumvent the original purpose
of the code here?


  M +2 -6      kstrvector.cpp   1.61


--- kdeextragear-2/kst/kst/kstrvector.cpp  #1.60:1.61
@@ -349,5 +349,4 @@ KstObject::UpdateType KstRVector::doUpda
   int ave_nread;
   int new_f0, new_nf, tmp_fn;
-  KstObject::UpdateType rc = NO_CHANGE;
 
   checkIntegrity();
@@ -484,5 +483,5 @@ KstObject::UpdateType KstRVector::doUpda
   // As a first fix, mount all nsf mounted dirfiles with "-o noac"
   _dirty = false;
-  if (_numSamples != _size) {
+  if (_numSamples != _size && !(_numSamples == 0 && _size == 1)) {
     _dirty = true;
     for (i = _numSamples; i < _size; i++) {
@@ -498,8 +497,5 @@ KstObject::UpdateType KstRVector::doUpda
   }
 
-  rc = (_dirty ? UPDATE : NO_CHANGE);
-  //kdDebug() << "dirty? " << (_dirty ? "yes" : "no") << endl;
-  KstVector::update(-1);
-  return rc;
+  return KstVector::update(-1);
 }
 





More information about the Kst mailing list