summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-07-30 22:58:35 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-07-30 22:58:35 +0000
commit5f5e9e2b956b22445a576fbfffef951a76f55fa3 (patch)
tree270a25bcf15567f61ce8d062fa11f4beda02d4e9 /src/ui/tools/pen-tool.cpp
parentupdate to trunk (diff)
parentMerge lp:~inkscape.dev/inkscape/bendFromClipboard into lp:inkscape (diff)
downloadinkscape-5f5e9e2b956b22445a576fbfffef951a76f55fa3.tar.gz
inkscape-5f5e9e2b956b22445a576fbfffef951a76f55fa3.zip
update to trunk
(bzr r13879.1.19)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
-rw-r--r--src/ui/tools/pen-tool.cpp3
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