[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Thu Jul 14 21:14:18 CEST 2005


SVN commit 434602 by rchern:

Remove force update for now - the Auto Threshold button will just use the latest values since the last update

 M  +0 -4      kstimagedialog_i.cpp  
 M  +1 -1      kstmatrix.cpp  


--- trunk/extragear/graphics/kst/kst/kstimagedialog_i.cpp #434601:434602
@@ -491,14 +491,10 @@
     KstMatrixList matrices = KST::matrixList;
     KstMatrixPtr matrix = *matrices.findTag(_matrix->selectedMatrix());
     if (matrix) {
-      // force update
-      _autoThreshold->setEnabled(false);
-      matrix->update(true);
       matrix->readLock();
       _lowerZ->setText(QString::number(matrix->minZ()));
       _upperZ->setText(QString::number(matrix->maxZ()));
       matrix->readUnlock();
-      _autoThreshold->setEnabled(true);
     }
   }
 }
--- trunk/extragear/graphics/kst/kst/kstmatrix.cpp #434601:434602
@@ -204,7 +204,7 @@
   // calculate stats
   _NS = _nX * _nY;
 
-  if (_NS > 0) {
+  if (_zSize > 0) {
     double min = _z[0];
     double max = _z[0];
     double minpos = (_z[0] > 0) ? _z[0] : 1.0E300;


More information about the Kst mailing list