Skip to content
Permalink
Browse files

[composer] Don't snap to hidden items

  • Loading branch information
nyalldawson committed Sep 30, 2014
1 parent fd92dd9 commit ed7007422d61f9384a2708b248f914dad5df2143
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/composer/qgscomposermousehandles.cpp
@@ -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;
}

0 comments on commit ed70074

Please sign in to comment.
You can’t perform that action at this time.