X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fguide-snapper.cpp;h=a05ecd3e6b4423c517710c83b21965540dd0d5f9;hb=69a2a17bdc758f2d554399a8115087beade71d11;hp=e247c0451ae843dfd1c7039d738fbcca7ffe96d1;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/guide-snapper.cpp b/src/guide-snapper.cpp index e247c0451..a05ecd3e6 100644 --- a/src/guide-snapper.cpp +++ b/src/guide-snapper.cpp @@ -7,7 +7,7 @@ * Frank Felfe * Carl Hetherington * - * Copyright (C) 1999-2002 Authors + * Copyright (C) 1999-2002 Authors * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -25,7 +25,11 @@ Inkscape::GuideSnapper::GuideSnapper(SPNamedView const *nv, NR::Coord const d) : Inkscape::GuideSnapper::LineList Inkscape::GuideSnapper::_getSnapLines(NR::Point const &p) const { 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);