diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2014-12-04 20:21:53 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2014-12-04 20:21:53 +0000 |
| commit | 5ef0ea93284f2847a06a84319e50d918a9d2800a (patch) | |
| tree | 12e1f416d025d4a440488ad63b42b4ce28a975cb | |
| parent | Store 3d box tool coordinates stored in 'user units'. (diff) | |
| download | inkscape-5ef0ea93284f2847a06a84319e50d918a9d2800a.tar.gz inkscape-5ef0ea93284f2847a06a84319e50d918a9d2800a.zip | |
Fix snapping bug in pen tool
Fixed bugs:
- https://launchpad.net/bugs/1260544
(bzr r13785)
| -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; |
