Code

Fix bug #299414: a return statement in unitTangentAt() got lost in rev. 20205!
authordvlierop2 <dvlierop2@users.sourceforge.net>
Wed, 26 Nov 2008 20:53:04 +0000 (20:53 +0000)
committerdvlierop2 <dvlierop2@users.sourceforge.net>
Wed, 26 Nov 2008 20:53:04 +0000 (20:53 +0000)
src/2geom/curve.h

index af02d6edba9d3afeb4db2292cfef3fccd2d5c3b7..08cc2380ceb552c3a8cdb343ebc97988bf2acd66 100644 (file)
@@ -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);