Skip to content

Commit

Permalink
Update src/gui/layout/qgslayoutviewtoolselect.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
  • Loading branch information
rduivenvoorde and nyalldawson committed Mar 31, 2021
1 parent 46d1d23 commit 8d1b4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/layout/qgslayoutviewtoolselect.cpp
Expand Up @@ -254,9 +254,9 @@ void QgsLayoutViewToolSelect::layoutReleaseEvent( QgsLayoutViewMouseEvent *event
{
emit itemFocused( selectedItemList.at( 0 ) );
}
else if ( paperItemFocused )
else if ( focusedPaperItem )
{
// do NOT emit nullptr because that will remove the page properties...
emit itemFocused( focusedPaperItem );
}
else
{
Expand Down

0 comments on commit 8d1b4ff

Please sign in to comment.