summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-14 19:28:11 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-14 19:28:11 +0000
commitf80f218cb35cf2b2f32e6520803c93647ed44070 (patch)
tree4fdca84c266906c428de2f270c7b1d1a33703882 /src/draw-context.cpp
parent2geomify ODF output (diff)
downloadinkscape-f80f218cb35cf2b2f32e6520803c93647ed44070.tar.gz
inkscape-f80f218cb35cf2b2f32e6520803c93647ed44070.zip
draw-context: replace check for empty path with 2geomified method of spcurve
(bzr r6300)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp2
1 files changed, 1 insertions, 1 deletions
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());