summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/2geom/curve.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/curve.h b/src/2geom/curve.h
index af02d6edb..08cc2380c 100644
--- a/src/2geom/curve.h
+++ b/src/2geom/curve.h
@@ -138,7 +138,7 @@ public:
Coord length = derivs[deriv_n].length();
if ( ! are_near(length, 0) ) {
// length of derivative is non-zero, so return unit vector
- derivs[deriv_n] / length;
+ return derivs[deriv_n] / length;
}
}
return Point (0,0);