summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-08-08 13:47:46 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-08-08 13:47:46 +0000
commitd59ab0cc036239f5e2f6040b2f439ba7b55af4c3 (patch)
tree798cae601f4b4a2adedb662220665e900e6e2fa7 /src/ui/tools/pen-tool.cpp
parentMessed up German translation (??) (diff)
downloadinkscape-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.cpp4
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();