From e88e4c8929964f49bf9a5e132767791bdbe37c15 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Wed, 11 Aug 2010 21:06:44 +0200 Subject: Fix a crash introduced by my previous commit (bzr r9701) --- src/snap.cpp | 1 - src/snap.h | 1 - 2 files changed, 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3