[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Apr 28 21:09:10 CEST 2004


CVS commit by arwalker: 

The KstPSDCurve constructor is not expecting the length of FFT vector, but instead its log2(length).


  M +5 -1      datawizard.ui.h   1.17


--- kdeextragear-2/kst/kst/datawizard.ui.h  #1.16:1.17
@@ -350,5 +351,8 @@ void DataWizard::finished()
           name += "'";
         }
-        iLength = int(pow(2.0, int(ceil(log(double(xv->length())) / log(2)))));
+        iLength = int(ceil(log(double(xv->length())) / log(2.0)));
+        if( iLength > 16 ) {
+          iLength = 16;
+        }
         KstBaseCurvePtr c = new KstPSDCurve(name, xv, 1.0, iLength, "", "", KstColorSequence::next());  
         if (_drawBoth->isChecked()) {





More information about the Kst mailing list