summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-11-26 20:53:04 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-11-26 20:53:04 +0000
commit748be3273010b0637c815e6276f656db47e5121a (patch)
treef35dc94fea637d75f93815a90c7f72eea30dd490 /src
parentWhen snapping only the closest node, draw an indicator at that node (diff)
downloadinkscape-748be3273010b0637c815e6276f656db47e5121a.tar.gz
inkscape-748be3273010b0637c815e6276f656db47e5121a.zip
Fix bug #299414: a return statement in unitTangentAt() got lost in rev. 20205!
(bzr r6904)
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);