Code

now that selection description includes style (filtered, clipped), we need to update...
[inkscape.git] / src / snap.cpp
index 04521f07fc64ad4b99cdb1ec18ecbedb0ce21a2a..548741455704b51b510b052b2d9df4a608d0dd9f 100644 (file)
@@ -77,7 +77,7 @@ SnapManager::getGridSnappers() const
     SnapperList s;
 
     //FIXME: this code should actually do this: add new grid snappers that are active for this desktop. now it just adds all gridsnappers
-    if (_desktop && _desktop->gridsEnabled()) {
+    if (_desktop && _desktop->gridsEnabled() && snapprefs.getSnapToGrids()) {
         for ( GSList const *l = _named_view->grids; l != NULL; l = l->next) {
             Inkscape::CanvasGrid *grid = (Inkscape::CanvasGrid*) l->data;
             s.push_back(grid->snapper);