Code

handle the case of no filter primitives
[inkscape.git] / src / guide-snapper.cpp
index fbf1af0af1bd61c38e64177b90bfcd32cd1759ea..a05ecd3e6b4423c517710c83b21965540dd0d5f9 100644 (file)
@@ -26,6 +26,10 @@ Inkscape::GuideSnapper::LineList Inkscape::GuideSnapper::_getSnapLines(NR::Point
 {
     LineList s;
 
+    if ( NULL == _named_view ) {
+        return s;
+    }
+
     for (GSList const *l = _named_view->guides; l != NULL; l = l->next) {
         SPGuide const *g = SP_GUIDE(l->data);