summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d34c9af)
raw | patch | inline | side by side (parent: d34c9af)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Wed, 26 Nov 2008 20:53:04 +0000 (20:53 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Wed, 26 Nov 2008 20:53:04 +0000 (20:53 +0000) |
src/2geom/curve.h | patch | blob | history |
diff --git a/src/2geom/curve.h b/src/2geom/curve.h
index af02d6edba9d3afeb4db2292cfef3fccd2d5c3b7..08cc2380ceb552c3a8cdb343ebc97988bf2acd66 100644 (file)
--- a/src/2geom/curve.h
+++ b/src/2geom/curve.h
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);