summaryrefslogtreecommitdiffstats
path: root/src/desktop-events.cpp
diff options
context:
space:
mode:
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);