diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-12-05 20:21:16 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-12-05 20:21:16 +0000 |
| commit | a8c7239a9fa7393b537726f1113e3067f7fba8b1 (patch) | |
| tree | 41a13d0461c81c7b697616417dd0aa35da5696e7 /src/ui | |
| parent | adding fussion improvements (diff) | |
| parent | Update for osx packaging (add support for debug builds, add build number to p... (diff) | |
| download | inkscape-a8c7239a9fa7393b537726f1113e3067f7fba8b1.tar.gz inkscape-a8c7239a9fa7393b537726f1113e3067f7fba8b1.zip | |
update to trunk
(bzr r13708.1.6)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp index fbcdf6142..6b38020a4 100644 --- a/src/ui/tools/pen-tool.cpp +++ b/src/ui/tools/pen-tool.cpp @@ -614,7 +614,12 @@ bool PenTool::_handleMotionNotify(GdkEventMotion const &mevent) { ret = true; break; case PenTool::STOP: - // This is perfectly valid + if (!this->sp_event_context_knot_mouseover()) { + SnapManager &m = desktop->namedview->snap_manager; + m.setup(desktop); + m.preSnap(Inkscape::SnapCandidatePoint(p, Inkscape::SNAPSOURCE_NODE_HANDLE)); + m.unSetup(); + } break; default: break; @@ -685,8 +690,7 @@ bool PenTool::_handleMotionNotify(GdkEventMotion const &mevent) { ret = true; break; case PenTool::STOP: - // This is perfectly valid - break; + // Don't break; fall through to default to do preSnapping default: if (!this->sp_event_context_knot_mouseover()) { SnapManager &m = desktop->namedview->snap_manager; |
