Skip to content

Commit

Permalink
[composer] Don't snap to hidden items
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 30, 2014
1 parent fd92dd9 commit ed70074
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/composer/qgscomposermousehandles.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,8 @@ void QgsComposerMouseHandles::collectAlignCoordinates( QMap< double, const QgsCo
const QgsComposerItem* currentItem = dynamic_cast<const QgsComposerItem *>( *itemIt );
//don't snap to selected items, since they're the ones that will be snapping to something else
//also ignore group members - only snap to bounds of group itself
if ( !currentItem || currentItem->selected() || currentItem->isGroupMember() )
//also ignore hidden items
if ( !currentItem || currentItem->selected() || currentItem->isGroupMember() || !currentItem->isVisible() )
{
continue;
}
Expand Down

0 comments on commit ed70074

Please sign in to comment.