[Kst] extragear/graphics/kst/src/libkstapp

George Staikos staikos at kde.org
Sat Apr 8 06:03:46 CEST 2006


SVN commit 527404 by staikos:

another range check



 M  +2 -2      datawizard.ui.h  


--- trunk/extragear/graphics/kst/src/libkstapp/datawizard.ui.h #527403:527404
@@ -552,7 +552,7 @@
 
     // only add to memory requirement if xVector is to be created 
     if (_xAxisCreateFromField->isChecked()) {
-	if (_kstDataRange->ReadToEnd->isChecked()) {
+	if (_kstDataRange->ReadToEnd->isChecked() || nValue < 0) {
 	    frames = ds->frameCount(_xVector->currentText()) - f0Value;
 	} else {
 	    frames = kMin(nValue, ds->frameCount(_xVector->currentText()));
@@ -575,7 +575,7 @@
 	    if (i->isOn()) {
 		QString field = it.current()->text(0);
 
-		if (_kstDataRange->ReadToEnd->isChecked()) {
+		if (_kstDataRange->ReadToEnd->isChecked() || nValue < 0) {
 		    frames = ds->frameCount(field) - f0Value;
 		} else {
 		    frames = nValue;


More information about the Kst mailing list