diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-03 21:31:35 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-03 21:31:35 +0000 |
| commit | be721401e6cb5e4e58096ee10746c41198a6fe7e (patch) | |
| tree | 0bc9c501989dc7ef8bb94c9cd8302c65623489df /src/pencil-context.cpp | |
| parent | improve spcurve::second_point and document its behavior (diff) | |
| download | inkscape-be721401e6cb5e4e58096ee10746c41198a6fe7e.tar.gz inkscape-be721401e6cb5e4e58096ee10746c41198a6fe7e.zip | |
improve pencil-context logic
(bzr r6138)
Diffstat (limited to 'src/pencil-context.cpp')
| -rw-r--r-- | src/pencil-context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 2aac6ec0a..918990e7e 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 ( ( 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(); |
