Fix thinko causing possible memory corruption.
authorCarl Hetherington <carl@carlh.net>
Thu, 19 Apr 2012 23:54:05 +0000 (23:54 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 19 Apr 2012 23:54:05 +0000 (23:54 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12040 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/src/Curve.cpp

index 42f0eee49c5ab9046a96459ba88a1a29d0dbde5a..61f00198c1fdbb7095f2d0107414112f83b947cb 100644 (file)
@@ -301,7 +301,7 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
                                vec[i] = (lx * (m_num / m_den) + m_num * i * dx_num / (m_den * dx_den)) + c;
                        }
                } else {
-                       vec[i] = lx;
+                       vec[0] = lx;
                }
 
                return;