summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2c9d1a)
raw | patch | inline | side by side (parent: a2c9d1a)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 14 Jul 2008 19:28:11 +0000 (19:28 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 14 Jul 2008 19:28:11 +0000 (19:28 +0000) |
src/draw-context.cpp | patch | blob | history |
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index e8b755b9bc15b3abdee04546300a4f0814f5f9e0..67c093b4187f877895f8781f709c0a72709449e3 100644 (file)
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
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());