summaryrefslogtreecommitdiffstats
path: root/src/desktop-events.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-07-24 19:53:33 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-07-24 19:53:33 +0000
commit5a37f06c70e0e4e2519812564f4dcdced7c0246a (patch)
treef959f73813cb6f968072aee1100323b24e294136 /src/desktop-events.cpp
parentupdate to trunk (diff)
parentFix a bug continuing a bezier path whith a LPE one like spiro or bspline on a... (diff)
downloadinkscape-5a37f06c70e0e4e2519812564f4dcdced7c0246a.tar.gz
inkscape-5a37f06c70e0e4e2519812564f4dcdced7c0246a.zip
update to trunk
(bzr r13879.1.17)
Diffstat (limited to 'src/desktop-events.cpp')
-rw-r--r--src/desktop-events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index e80e5f6c1..b685dacbf 100644
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
@@ -354,7 +354,7 @@ gint sp_dt_guide_event(SPCanvasItem *item, GdkEvent *event, gpointer data)
// the origin should still be constrained to the guide. So let's do
// that explicitly first:
Geom::Line line(guide->getPoint(), guide->angle());
- Geom::Coord t = line.nearestPoint(motion_dt);
+ Geom::Coord t = line.nearestTime(motion_dt);
motion_dt = line.pointAt(t);
if (!(event->motion.state & GDK_SHIFT_MASK)) {
m.guideConstrainedSnap(motion_dt, *guide);
@@ -435,7 +435,7 @@ gint sp_dt_guide_event(SPCanvasItem *item, GdkEvent *event, gpointer data)
// the origin should still be constrained to the guide. So let's
// do that explicitly first:
Geom::Line line(guide->getPoint(), guide->angle());
- Geom::Coord t = line.nearestPoint(event_dt);
+ Geom::Coord t = line.nearestTime(event_dt);
event_dt = line.pointAt(t);
if (!(event->button.state & GDK_SHIFT_MASK)) {
m.guideConstrainedSnap(event_dt, *guide);