From: johanengelen Date: Sat, 2 Aug 2008 20:48:51 +0000 (+0000) Subject: fix nodetype determination. fixes lpe spiro bug X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=113e5c0105843436e094ebe8807d352a6c041854;p=inkscape.git fix nodetype determination. fixes lpe spiro bug --- diff --git a/src/helper/geom-nodetype.cpp b/src/helper/geom-nodetype.cpp index 54c4e4e88..17266ad31 100644 --- a/src/helper/geom-nodetype.cpp +++ b/src/helper/geom-nodetype.cpp @@ -31,7 +31,9 @@ NodeType get_nodetype(Curve const &c_incoming, Curve const &c_outgoing) if ( !are_near(c_incoming.pointAt(1), c_outgoing.pointAt(0)) ) return NODE_NONE; - Geom::Point deriv_1 = c_incoming.unitTangentAt(1); + Geom::Curve *crv = c_incoming.reverse(); + Geom::Point deriv_1 = -crv->unitTangentAt(0); + delete crv; Geom::Point deriv_2 = c_outgoing.unitTangentAt(0); double this_angle_L2 = Geom::L2(deriv_1); double next_angle_L2 = Geom::L2(deriv_2);