Code

Fix a crash introduced by my previous commit
authorDiederik van Lierop <mailat-signdiedenrezidotnl>
Wed, 11 Aug 2010 19:06:44 +0000 (21:06 +0200)
committerDiederik van Lierop <mailat-signdiedenrezidotnl>
Wed, 11 Aug 2010 19:06:44 +0000 (21:06 +0200)
src/snap.cpp
src/snap.h

index 7ba85a9aa95855b1f9b784e0171a726771b09dfd..f17ae1e145bd4028447a785e604a3db14a8074c9 100644 (file)
@@ -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;
index 9a99cea0771e884b9a318b261da5b53dcec52cc4..7f3c289551ed461bdbed9e4588f3a107478561ed 100644 (file)
@@ -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