Patch from agorka to add some includes required for building with the GCC shipped...
[ardour.git] / libs / evoral / src / Curve.cpp
index c463022525cd95864fcb2476b677e2e527e043fb..2ae79a39175832bbc58c4027468c2cd78aafbaf4 100644 (file)
@@ -25,8 +25,8 @@
 
 #include <glibmm/thread.h>
 
-#include <evoral/Curve.hpp>
-#include <evoral/ControlList.hpp>
+#include "evoral/Curve.hpp"
+#include "evoral/ControlList.hpp"
 
 using namespace std;
 using namespace sigc;
@@ -309,7 +309,7 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
 
        if (veclen > 1) {
 
-               dx = (hx - lx) / veclen;
+               dx = (hx - lx) / (veclen-1);
 
                for (i = 0; i < veclen; ++i, rx += dx) {
                        vec[i] = multipoint_eval (rx);