summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2014-09-14 06:27:21 +0000
committerMartin Owens <doctormo@gmail.com>2014-09-14 06:27:21 +0000
commit9d32539b23031c0e0d1a24c083fc609975a459e2 (patch)
treee49d90232f01941bc49fbece3ff715790830649b /src/ui/tools/pen-tool.cpp
parentadd radius support to fillet-chamfer, bugfixes (diff)
parentUpdate to experimental r13543 (diff)
downloadinkscape-9d32539b23031c0e0d1a24c083fc609975a459e2.tar.gz
inkscape-9d32539b23031c0e0d1a24c083fc609975a459e2.zip
Merge in ponyscape features by Theo and worked on my LiamW
(bzr r13341.1.204)
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();