summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object-snapper.cpp')
-rw-r--r--src/object-snapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp
index 6146c11b8..9a3f61525 100644
--- a/src/object-snapper.cpp
+++ b/src/object-snapper.cpp
@@ -144,6 +144,10 @@ void Inkscape::ObjectSnapper::_snapPaths(Inkscape::SnappedPoint &s,
Inkscape::SnappedPoint Inkscape::ObjectSnapper::_doFreeSnap(NR::Point const &p,
std::list<SPItem const *> const &it) const
{
+ if ( NULL == _named_view ) {
+ return SnappedPoint(p, NR_HUGE);
+ }
+
/* Get a list of all the SPItems that we will try to snap to */
std::list<SPItem*> cand;
_findCandidates(cand, sp_document_root(_named_view->document), it, p);