diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-06-11 21:53:17 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-06-11 21:53:17 +0000 |
| commit | b2ae5212d7df04a0b973571748d402d5663312d6 (patch) | |
| tree | deadb79b2ae935198d34f415f10cd3f317119275 /src/ui/tools/pen-tool.cpp | |
| parent | Extensions. Fix for Bug #505920 (inkscape loads extension even if the script ... (diff) | |
| download | inkscape-b2ae5212d7df04a0b973571748d402d5663312d6.tar.gz inkscape-b2ae5212d7df04a0b973571748d402d5663312d6.zip | |
pen tool: fix crash when finishing path with right-click or enter while dragging from path's startnode (otherwise closing the path)
Fixed bugs:
- https://launchpad.net/bugs/1326652
(bzr r13422)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp index 09c0a2a4f..b089065e8 100644 --- a/src/ui/tools/pen-tool.cpp +++ b/src/ui/tools/pen-tool.cpp @@ -481,6 +481,7 @@ bool PenTool::_handleButtonPress(GdkEventButton const &bevent) { ret = true; } else if (bevent.button == 3 && this->npoints != 0) { // right click - finish path + this->ea = NULL; // unset end anchor if set (otherwise crashes) this->_finish(false); ret = true; } @@ -1018,6 +1019,7 @@ bool PenTool::_handleKeyPress(GdkEvent *event) { case GDK_KEY_Return: case GDK_KEY_KP_Enter: if (this->npoints != 0) { + this->ea = NULL; // unset end anchor if set (otherwise crashes) this->_finish(false); ret = true; } |
