summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2fbdfc)
raw | patch | inline | side by side (parent: a2fbdfc)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 26 Jun 2008 23:26:08 +0000 (23:26 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 26 Jun 2008 23:26:08 +0000 (23:26 +0000) |
src/pencil-context.cpp | patch | blob | history |
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 6af9f7956c768412f9ab31c705f6ba59712e0e17..3e0e793f6cf397a8458fc241a92563605a4e62a1 100644 (file)
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
spdc_finish_endpoint(SPPencilContext *const pc)
{
if ( ( SP_CURVE_LENGTH(pc->red_curve) != 2 )
- || ( SP_CURVE_SEGMENT(pc->red_curve, 0)->c(3) ==
- SP_CURVE_SEGMENT(pc->red_curve, 1)->c(3) ) )
+ || ( pc->red_curve->first_point() == pc->red_curve->second_point() ) )
{
pc->red_curve->reset();
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), NULL);