diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-04-15 17:05:40 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-04-15 17:05:40 +0000 |
| commit | 0a7239ba0bd51bac0eabd829f3058721bdf73165 (patch) | |
| tree | dded619db176e84e3d9015b70074abe6fc02f0e9 /src/selection-chemistry.cpp | |
| parent | Remove some unneeded header includes (diff) | |
| download | inkscape-0a7239ba0bd51bac0eabd829f3058721bdf73165.tar.gz inkscape-0a7239ba0bd51bac0eabd829f3058721bdf73165.zip | |
Removal of old grid code - fully enabled new grid code.
(bzr r2904)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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); } |
