From 3481838efd1b37e003ec05f03960a248114377a4 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 14 Jul 2008 19:39:19 +0000 Subject: [PATCH] fix check for empty path for draw-context --- src/draw-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 67c093b41..6831654ea 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_segment_count() > 1 ); + g_return_if_fail( c->get_segment_count() > 0 ); if ( !c->is_closed() ) { SPDrawAnchor *a; a = sp_draw_anchor_new(dc, c, TRUE, c->first_point()); -- 2.30.2