[Kst] branches/work/kst/hierarchy/kst/src/plugins/convolution/convolve

Eli Fidler eli at staikos.net
Fri Dec 8 00:40:39 CET 2006


SVN commit 611411 by fidler:

invalid array access fix...

I think the math is right, but can someone confirm?



 M  +1 -1      convolve.cpp  


--- branches/work/kst/hierarchy/kst/src/plugins/convolution/convolve/convolve.cpp #611410:611411
@@ -109,7 +109,7 @@
     // handle the case where the response function has an odd number of points...
     //
     if (iResponseMidpoint % 2 == 1) {
-      pdResponse[iResponseMidpoint]           = response->value()[response->length()];
+      pdResponse[iResponseMidpoint]           = response->value()[response->length()-1];
     }
 
     //


More information about the Kst mailing list