[Kst] branches/kst/hfi_calib/kst/kst

George Staikos staikos at kde.org
Thu Apr 6 22:06:19 CEST 2006


SVN commit 527083 by staikos:

don't give false errors for skip < 1


 M  +2 -2      datawizard.ui.h  


--- branches/kst/hfi_calib/kst/kst/datawizard.ui.h #527082:527083
@@ -529,7 +529,7 @@
 	    frames = kMin(nValue, ds->frameCount(_xVector->currentText()));
 	}
 
-	if (_kstDataRange->DoSkip->isChecked()) {
+	if (_kstDataRange->DoSkip->isChecked() && _kstDataRange->Skip->value() > 0) {
 	    memoryRequested += frames / _kstDataRange->Skip->value() * sizeof(double);
 	} else {
 	    memoryRequested += frames * ds->samplesPerFrame(_xVector->currentText())*sizeof(double);
@@ -555,7 +555,7 @@
 		    }
 		}
 
-		if (_kstDataRange->DoSkip->isChecked()) {
+		if (_kstDataRange->DoSkip->isChecked() && _kstDataRange->Skip->value() > 0) {
 		    memoryRequested += frames / _kstDataRange->Skip->value()*sizeof(double);
 		} else {
 		    memoryRequested += frames * ds->samplesPerFrame(field)*sizeof(double);


More information about the Kst mailing list