summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8aed1e)
raw | patch | inline | side by side (parent: f8aed1e)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 19 Dec 2007 22:52:36 +0000 (22:52 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 19 Dec 2007 22:52:36 +0000 (22:52 +0000) |
src/desktop-events.cpp | patch | blob | history |
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index f0561202d191fad31c1d39636d523fdcb021570c..faa735733c7a46f62cceeb49a93a07dd6f03482d 100644 (file)
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
SnapManager const &m = desktop->namedview->snap_manager;
motion_dt = m.guideSnap(motion_dt, guide->normal_to_line).getPoint();
- sp_guide_moveto(*guide, sp_guide_position_from_pt(guide, motion_dt), false);
+ sp_guide_moveto(*guide, motion_dt.to_2geom(), false);
moved = true;
desktop->set_coordinate_status(motion_dt);
desktop->setPosition (motion_dt);
event_dt = m.guideSnap(event_dt, guide->normal_to_line).getPoint();
if (sp_canvas_world_pt_inside_window(item->canvas, event_w)) {
- sp_guide_moveto(*guide, sp_guide_position_from_pt(guide, event_dt), true);
+ sp_guide_moveto(*guide, event_dt.to_2geom(), true);
sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE,
_("Move guide"));
} else {