summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-30 19:42:01 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-30 19:42:01 +0000
commit336d7f64a9fe939943c2d1f1d904e8e10b1c8302 (patch)
treed60b47c92a3114a9c23863d6c9cbe6f23cee43bd /src/pencil-context.cpp
parentadd SPCurve::get_segment_count (diff)
downloadinkscape-336d7f64a9fe939943c2d1f1d904e8e10b1c8302.tar.gz
inkscape-336d7f64a9fe939943c2d1f1d904e8e10b1c8302.zip
pencil tool: don't use sp_curve_length macro but good function ;)
(bzr r6101)
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 3e0e793f6..2aac6ec0a 100644
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -570,7 +570,7 @@ spdc_set_endpoint(SPPencilContext *const pc, NR::Point const p)
static void
spdc_finish_endpoint(SPPencilContext *const pc)
{
- if ( ( SP_CURVE_LENGTH(pc->red_curve) != 2 )
+ if ( ( pc->red_curve->get_segment_count() != 1 )
|| ( pc->red_curve->first_point() == pc->red_curve->second_point() ) )
{
pc->red_curve->reset();