summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef13969)
raw | patch | inline | side by side (parent: ef13969)
author | Diederik van Lierop <mailat-signdiedenrezidotnl> | |
Wed, 11 Aug 2010 19:06:44 +0000 (21:06 +0200) | ||
committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | |
Wed, 11 Aug 2010 19:06:44 +0000 (21:06 +0200) |
src/snap.cpp | patch | blob | history | |
src/snap.h | patch | blob | history |
diff --git a/src/snap.cpp b/src/snap.cpp
index 7ba85a9aa95855b1f9b784e0171a726771b09dfd..f17ae1e145bd4028447a785e604a3db14a8074c9 100644 (file)
--- a/src/snap.cpp
+++ b/src/snap.cpp
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 9a99cea0771e884b9a318b261da5b53dcec52cc4..7f3c289551ed461bdbed9e4588f3a107478561ed 100644 (file)
--- a/src/snap.h
+++ b/src/snap.h
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