summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9bb4639)
raw | patch | inline | side by side (parent: 9bb4639)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 3 Jul 2008 21:31:35 +0000 (21:31 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 3 Jul 2008 21:31:35 +0000 (21:31 +0000) |
src/pencil-context.cpp | patch | blob | history |
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 2aac6ec0ab097ffe1ea1f91faa2b2bcf44acae02..918990e7eadc4a32503a6370e6783dbdd999a95c 100644 (file)
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
static void
spdc_finish_endpoint(SPPencilContext *const pc)
{
- if ( ( pc->red_curve->get_segment_count() != 1 )
+ if ( ( pc->red_curve->is_empty() )
|| ( pc->red_curve->first_point() == pc->red_curve->second_point() ) )
{
pc->red_curve->reset();