From: Diederik van Lierop Date: Wed, 11 Aug 2010 19:06:44 +0000 (+0200) Subject: Fix a crash introduced by my previous commit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6620262e3676c7a0176c1906e86be634297c4fb;p=inkscape.git Fix a crash introduced by my previous commit --- diff --git a/src/snap.cpp b/src/snap.cpp index 7ba85a9aa..f17ae1e14 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -89,7 +89,6 @@ SnapManager::SnapperList SnapManager::getGridSnappers() const { SnapperList s; - 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; diff --git a/src/snap.h b/src/snap.h index 9a99cea07..7f3c28955 100644 --- a/src/snap.h +++ b/src/snap.h @@ -101,7 +101,6 @@ public: void unSetup() {_rotation_center_source_item = NULL; _guide_to_ignore = NULL; _desktop = NULL; - _named_view = NULL; _unselected_nodes = NULL;} // If we're dragging a rotation center, then setRotationCenterSource() stores the parent item