diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-04-19 20:06:28 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-04-19 20:06:28 +0000 |
| commit | fa3101dc4297b19b5514a14d21fe29c14d2a62a2 (patch) | |
| tree | 08db0edcc36b918008fa82598a03fb12d4ef0376 /src/object-snapper.cpp | |
| parent | Completes crash fix for 1638735 (diff) | |
| download | inkscape-fa3101dc4297b19b5514a14d21fe29c14d2a62a2.tar.gz inkscape-fa3101dc4297b19b5514a14d21fe29c14d2a62a2.zip | |
Improve readability and remove some unused code
(bzr r2930)
Diffstat (limited to 'src/object-snapper.cpp')
| -rw-r--r-- | src/object-snapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp index e39d398b1..d63376e14 100644 --- a/src/object-snapper.cpp +++ b/src/object-snapper.cpp @@ -38,7 +38,7 @@ void Inkscape::ObjectSnapper::_findCandidates(std::list<SPItem*>& c, std::list<SPItem const *> const &it, NR::Point const &p) const { - if (willSnapSomething()) { + if (ThisSnapperMightSnap()) { SPDesktop const *desktop = SP_ACTIVE_DESKTOP; for (SPObject* o = sp_object_first_child(r); o != NULL; o = SP_OBJECT_NEXT(o)) { if (SP_IS_ITEM(o) && !SP_ITEM(o)->isLocked() && !desktop->itemIsHidden(SP_ITEM(o))) { @@ -186,7 +186,7 @@ Inkscape::SnappedPoint Inkscape::ObjectSnapper::_doConstrainedSnap(NR::Point con /** * \return true if this Snapper will snap at least one kind of point. */ -bool Inkscape::ObjectSnapper::willSnapSomething() const +bool Inkscape::ObjectSnapper::ThisSnapperMightSnap() const { return (_enabled && _snap_to != 0 && (_snap_to_paths || _snap_to_nodes)); } |
