Code

Give SPNamedView a SnapManager instance and use it for all management of snapping...
[inkscape.git] / src / selection-chemistry.cpp
index 19f6c4751d569f211766ce1d066934625c8491c2..a1363850dcbb21e3620882c5b0d2221e1468420b 100644 (file)
@@ -1099,7 +1099,7 @@ 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->grid_snapper;
+        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();