diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-08-13 23:23:05 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-08-13 23:23:05 +0000 |
| commit | 0932ef5feb3707d94b527890bab29ed67d20b384 (patch) | |
| tree | 2048992d53465f08de2471397c461f71c6a88722 /src/ui/tools/pen-tool.cpp | |
| parent | 2Geom: update to r2422. (diff) | |
| download | inkscape-0932ef5feb3707d94b527890bab29ed67d20b384.tar.gz inkscape-0932ef5feb3707d94b527890bab29ed67d20b384.zip | |
Refactor of BSPline code attemping to fix the duplicate end node bug, not sure if fixed jet
(bzr r14300)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp index 6a3928f27..69068f2a7 100644 --- a/src/ui/tools/pen-tool.cpp +++ b/src/ui/tools/pen-tool.cpp @@ -382,11 +382,12 @@ bool PenTool::_handleButtonPress(GdkEventButton const &bevent) { if( anchor && anchor == this->sa && this->green_curve->is_empty()){ //remove the following line to avoid having one node on top of another _finishSegment(event_dt, bevent.state); - _finish( false); + _finish(true); return true; } return false; } + bool ret = false; if (bevent.button == 1 && !this->space_panning // make sure this is not the last click for a waiting LPE (otherwise we want to finish the path) @@ -860,7 +861,7 @@ bool PenTool::_handleButtonRelease(GdkEventButton const &revent) { bool PenTool::_handle2ButtonPress(GdkEventButton const &bevent) { bool ret = false; // only end on LMB double click. Otherwise horizontal scrolling causes ending of the path - if (this->npoints != 0 && bevent.button == 1) { + if (this->npoints != 0 && bevent.button == 1 && this->state != PenTool::CLOSE) { this->_finish(false); ret = true; } |
