From: johanengelen Date: Thu, 26 Jun 2008 23:26:08 +0000 (+0000) Subject: use spcurve methods instead of macro (which references to old nartbpath) to determine... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c054060cfb0a4150257eed27d15ba49ce006f3c7;p=inkscape.git use spcurve methods instead of macro (which references to old nartbpath) to determine first and second nodal points --- diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 6af9f7956..3e0e793f6 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -571,8 +571,7 @@ static void spdc_finish_endpoint(SPPencilContext *const pc) { if ( ( SP_CURVE_LENGTH(pc->red_curve) != 2 ) - || ( SP_CURVE_SEGMENT(pc->red_curve, 0)->c(3) == - SP_CURVE_SEGMENT(pc->red_curve, 1)->c(3) ) ) + || ( pc->red_curve->first_point() == pc->red_curve->second_point() ) ) { pc->red_curve->reset(); sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), NULL);