diff options
| author | Markus Engel <markus.engel@tum.de> | 2014-03-02 00:31:12 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2014-03-02 00:31:12 +0000 |
| commit | 3aa344e9a40d97db7cd5a89671896bab70da33a4 (patch) | |
| tree | 1ea673a167ac9d121b64689c084383791bddf65a /src/knotholder.cpp | |
| parent | Fix for crash when cycle-selecting. (diff) | |
| download | inkscape-3aa344e9a40d97db7cd5a89671896bab70da33a4.tar.gz inkscape-3aa344e9a40d97db7cd5a89671896bab70da33a4.zip | |
Added some consts. Turned functions to member functions.
(bzr r13089)
Diffstat (limited to 'src/knotholder.cpp')
| -rw-r--r-- | src/knotholder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp index 71bccca16..bef89f3af 100644 --- a/src/knotholder.cpp +++ b/src/knotholder.cpp @@ -103,10 +103,10 @@ void KnotHolder::update_knots() /** * Returns true if at least one of the KnotHolderEntities has the mouse hovering above it. */ -bool KnotHolder::knot_mouseover() -{ - for(std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i) { - SPKnot *knot = (*i)->knot; +bool KnotHolder::knot_mouseover() const { + for (std::list<KnotHolderEntity *>::const_iterator i = entity.begin(); i != entity.end(); ++i) { + const SPKnot *knot = (*i)->knot; + if (knot && (knot->flags & SP_KNOT_MOUSEOVER)) { return true; } |
