diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2015-07-25 19:52:00 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2015-07-25 19:52:00 +0000 |
| commit | c7a58fa3190e53b2aaf2886ef3eb4dd0c7524bcd (patch) | |
| tree | cdea41bec9d4222bad9caf2bd8c1fffec40c5639 /src/ui/tools/pen-tool.cpp | |
| parent | Cleanup spurious indentation (diff) | |
| download | inkscape-c7a58fa3190e53b2aaf2886ef3eb4dd0c7524bcd.tar.gz inkscape-c7a58fa3190e53b2aaf2886ef3eb4dd0c7524bcd.zip | |
Fix snapping of start point of path when holding the CTRL key in the Bézier tool
Fixed bugs:
- https://launchpad.net/bugs/1432354
(bzr r14257)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp index 827dbf5c3..d924d8773 100644 --- a/src/ui/tools/pen-tool.cpp +++ b/src/ui/tools/pen-tool.cpp @@ -268,6 +268,9 @@ void PenTool::_endpointSnap(Geom::Point &p, guint const state) const { if ((state & GDK_CONTROL_MASK) && !this->polylines_paraxial) { //CTRL enables angular snapping if (this->npoints > 0) { spdc_endpoint_snap_rotation(this, p, this->p[0], state); + } else { + boost::optional<Geom::Point> origin = boost::optional<Geom::Point>(); + spdc_endpoint_snap_free(this, p, origin, state); } } else { // We cannot use shift here to disable snapping because the shift-key is already used |
