From: johanengelen Date: Mon, 14 Jul 2008 19:28:11 +0000 (+0000) Subject: draw-context: replace check for empty path with 2geomified method of spcurve X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4fd5c7229321ac4ec84e5444a850c4d05348bae3;p=inkscape.git draw-context: replace check for empty path with 2geomified method of spcurve --- diff --git a/src/draw-context.cpp b/src/draw-context.cpp index e8b755b9b..67c093b41 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -399,7 +399,7 @@ spdc_attach_selection(SPDrawContext *dc, Inkscape::Selection */*sel*/) for (GSList *l = dc->white_curves; l != NULL; l = l->next) { SPCurve *c; c = (SPCurve*)l->data; - g_return_if_fail( c->get_length() > 1 ); + g_return_if_fail( c->get_segment_count() > 1 ); if ( !c->is_closed() ) { SPDrawAnchor *a; a = sp_draw_anchor_new(dc, c, TRUE, c->first_point());