From 0a7239ba0bd51bac0eabd829f3058721bdf73165 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 15 Apr 2007 17:05:40 +0000 Subject: Removal of old grid code - fully enabled new grid code. (bzr r2904) --- src/selection-chemistry.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index f8548cdc4..2b13021a2 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -1145,12 +1145,9 @@ void sp_selection_paste(bool in_place) } /* Snap the offset of the new item(s) to the grid */ - /* FIXME: this gridsnap fiddling is a hack. */ - Inkscape::GridSnapper &s = desktop->namedview->snap_manager.grid; - gdouble const curr_gridsnap = s.getDistance(); - s.setDistance(NR_HUGE); - m = s.freeSnap(Inkscape::Snapper::SNAP_POINT, m, NULL).getPoint(); - s.setDistance(curr_gridsnap); + SnapManager &sm = desktop->namedview->snap_manager; + SnapManager::SnapperList gs = sm.getGridSnappers(); + m = sm.freeSnapAlways(Inkscape::Snapper::SNAP_POINT, m, NULL, gs).getPoint(); sp_selection_move_relative(selection, m); } -- cgit v1.2.3