Skip to content

Commit

Permalink
[composer] Don't snap to items within a group
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 4, 2014
1 parent 55ed628 commit 844a9bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/composer/qgscomposermousehandles.cpp
Expand Up @@ -1269,7 +1269,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
if ( !currentItem || currentItem->selected() )
//also ignore group members - only snap to bounds of group itself
if ( !currentItem || currentItem->selected() || currentItem->isGroupMember() )
{
continue;
}
Expand Down

0 comments on commit 844a9bb

Please sign in to comment.