Code

use namedview->snap_* variables instead of namedview->*_snapper,
authorrwst <rwst@users.sourceforge.net>
Sun, 29 Jan 2006 14:58:15 +0000 (14:58 +0000)
committerrwst <rwst@users.sourceforge.net>
Sun, 29 Jan 2006 14:58:15 +0000 (14:58 +0000)
fixes #1399284

src/ui/dialog/document-properties.cpp

index 3c59e77af7d34df7b00b96fefb76ab4549d6b167..f9a280b8604dcd9aee25bc9a869ba849a504859a 100644 (file)
@@ -403,18 +403,18 @@ DocumentProperties::update()
     _rcp_hgui.setRgba32 (nv->guidehicolor);
 
     //-----------------------------------------------------------snap
-    _rcbsnbo.setActive (nv->object_snapper.getSnapTo(Inkscape::Snapper::BBOX_POINT));
-    _rcbsnnob.setActive (nv->object_snapper.getSnapTo(Inkscape::Snapper::SNAP_POINT));
-    _rcbsnop.setActive (nv->object_snapper.getSnapToPaths());
-    _rcbsnop.setActive (nv->object_snapper.getSnapToNodes());
+    _rcbsnbo.setActive (nv->snap_object_bbox);
+    _rcbsnnob.setActive (nv->snap_object_point);
+    _rcbsnop.setActive (nv->snap_object_paths);
+    _rcbsnop.setActive (nv->snap_object_nodes);
     _rsu_sno.setValue (nv->objecttolerance, nv->has_abs_tolerance);
      
-    _rcbsnbb.setActive (nv->grid_snapper.getSnapTo(Inkscape::Snapper::BBOX_POINT));
-    _rcbsnnod.setActive (nv->grid_snapper.getSnapTo(Inkscape::Snapper::SNAP_POINT));
+    _rcbsnbb.setActive (nv->snap_grid_bbox);
+    _rcbsnnod.setActive (nv->snap_grid_point);
     _rsu_sn.setValue (nv->gridtolerance, nv->has_abs_tolerance);
     
-     _rcb_snpgui.setActive (nv->guide_snapper.getSnapTo(Inkscape::Snapper::BBOX_POINT));
-    _rcb_snbgui.setActive (nv->guide_snapper.getSnapTo(Inkscape::Snapper::SNAP_POINT));
+     _rcb_snpgui.setActive (nv->snap_guide_bbox);
+    _rcb_snbgui.setActive (nv->snap_guide_point);
     _rsu_gusn.setValue (nv->guidetolerance, nv->has_abs_tolerance);
     _rrb_pix.setValue (true);