diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-08-08 13:47:46 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-08-08 13:47:46 +0000 |
| commit | d59ab0cc036239f5e2f6040b2f439ba7b55af4c3 (patch) | |
| tree | 798cae601f4b4a2adedb662220665e900e6e2fa7 /src/ui/tools/pen-tool.cpp | |
| parent | Messed up German translation (??) (diff) | |
| download | inkscape-d59ab0cc036239f5e2f6040b2f439ba7b55af4c3.tar.gz inkscape-d59ab0cc036239f5e2f6040b2f439ba7b55af4c3.zip | |
Ponyscape feature: finish pen drawing on context switch
(bzr r13090.1.101)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp index 9a73d497f..318591df5 100644 --- a/src/ui/tools/pen-tool.cpp +++ b/src/ui/tools/pen-tool.cpp @@ -239,7 +239,9 @@ void PenTool::finish() { sp_event_context_discard_delayed_snap_event(this); if (this->npoints != 0) { - this->_cancel(); + // switching context - finish path + this->ea = NULL; // unset end anchor if set (otherwise crashes) + this->_finish(false); } FreehandBase::finish(); |
