mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
[layouts] Fix odd selection behavior when keyboard modifiers are pressed
when rectangular selection ends
This commit is contained in:
parent
bd5743d267
commit
37b5af54d9
@ -184,7 +184,9 @@ void QgsLayoutViewToolSelect::layoutReleaseEvent( QgsLayoutViewMouseEvent *event
|
||||
mIsSelecting = false;
|
||||
bool wasClick = !isClickAndDrag( mMousePressStartPos, event->pos() );
|
||||
|
||||
QRectF rect = mRubberBand->finish( event->layoutPoint(), event->modifiers() );
|
||||
// important -- we don't pass the event modifiers here, because we use them for a different meaning!
|
||||
// (modifying how the selection interacts with the items, rather than modifying the selection shape)
|
||||
QRectF rect = mRubberBand->finish( event->layoutPoint() );
|
||||
|
||||
bool subtractingSelection = false;
|
||||
if ( event->modifiers() & Qt::ShiftModifier )
|
||||
|
Loading…
x
Reference in New Issue
Block a user