summaryrefslogtreecommitdiffstats
path: root/src/2geom/sbasis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/sbasis.cpp')
-rw-r--r--src/2geom/sbasis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/sbasis.cpp b/src/2geom/sbasis.cpp
index bdc40c936..b5c1a05a7 100644
--- a/src/2geom/sbasis.cpp
+++ b/src/2geom/sbasis.cpp
@@ -70,7 +70,7 @@ std::vector<double> SBasis::valueAndDerivatives(double t, unsigned n) const {
SBasis tmp = *this;
for(unsigned i = 1; i < n+1; i++) {
tmp.derive();
- ret[i+1] = tmp.valueAt(t);
+ ret[i] = tmp.valueAt(t);
}
return ret;
}