From d6620262e3676c7a0176c1906e86be634297c4fb Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Wed, 11 Aug 2010 21:06:44 +0200 Subject: [PATCH] Fix a crash introduced by my previous commit --- src/snap.cpp | 1 - src/snap.h | 1 - 2 files changed, 2 deletions(-) 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 -- 2.30.2