diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-07-30 17:56:34 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-07-30 17:56:34 +0000 |
| commit | 901fe3dd84279ed537cb6abb4efc1527adda93b1 (patch) | |
| tree | 6f53d66fb17e70cc5eda4766c761bb519469c76e /src/ui/tools/pen-tool.cpp | |
| parent | update to trunk (diff) | |
| parent | fix for a small warning introduced in r14142 (cf <https://bugs.launchpad.net/... (diff) | |
| download | inkscape-901fe3dd84279ed537cb6abb4efc1527adda93b1.tar.gz inkscape-901fe3dd84279ed537cb6abb4efc1527adda93b1.zip | |
update to trunk
(bzr r12588.1.46)
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 |
