Skip to content

Commit

Permalink
[composer] Ignore locked items when using move item content tool. Kee…
Browse files Browse the repository at this point in the history
…ps a

consistent behaviour with the move/resize item tool, and allows for
moving item content for maps which are stacked below locked items.
  • Loading branch information
nyalldawson committed Sep 29, 2014
1 parent 73f9833 commit 583151a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgscomposerview.cpp
Expand Up @@ -304,13 +304,13 @@ void QgsComposerView::mousePressEvent( QMouseEvent* e )
return;
}

//find highest QgsComposerItem at clicked position
//find highest non-locked QgsComposerItem at clicked position
//(other graphics items may be higher, eg selection handles)
QList<QGraphicsItem*>::iterator itemIter = itemsAtCursorPos.begin();
for ( ; itemIter != itemsAtCursorPos.end(); ++itemIter )
{
QgsComposerItem* item = dynamic_cast<QgsComposerItem *>(( *itemIter ) );
if ( item )
if ( item && !item->positionLock() )
{
//we've found the highest QgsComposerItem
mMoveContentStartPos = scenePoint;
Expand Down

0 comments on commit 583151a

Please sign in to comment.