From fa3101dc4297b19b5514a14d21fe29c14d2a62a2 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Thu, 19 Apr 2007 20:06:28 +0000 Subject: Improve readability and remove some unused code (bzr r2930) --- src/guide-snapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/guide-snapper.cpp') diff --git a/src/guide-snapper.cpp b/src/guide-snapper.cpp index 9fd13705c..1e4eb02d8 100644 --- a/src/guide-snapper.cpp +++ b/src/guide-snapper.cpp @@ -26,7 +26,7 @@ Inkscape::GuideSnapper::LineList Inkscape::GuideSnapper::_getSnapLines(NR::Point { LineList s; - if ( NULL == _named_view || willSnapSomething() == false) { + if ( NULL == _named_view || ThisSnapperMightSnap() == false) { return s; } @@ -47,7 +47,7 @@ Inkscape::GuideSnapper::LineList Inkscape::GuideSnapper::_getSnapLines(NR::Point /** * \return true if this Snapper will snap at least one kind of point. */ -bool Inkscape::GuideSnapper::willSnapSomething() const +bool Inkscape::GuideSnapper::ThisSnapperMightSnap() const { return _named_view == NULL ? false : (_enabled && _snap_to != 0 && _named_view->showguides); } -- cgit v1.2.3