Skip to content

Commit 583151a

Browse files
committedSep 29, 2014
[composer] Ignore locked items when using move item content tool. Keeps a
consistent behaviour with the move/resize item tool, and allows for moving item content for maps which are stacked below locked items.
1 parent 73f9833 commit 583151a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgscomposerview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ void QgsComposerView::mousePressEvent( QMouseEvent* e )
304304
return;
305305
}
306306

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

0 commit comments

Comments
 (0)
Please sign in to comment.