Display info in the message panel if only one item was selected using area selection tool.

This commit is contained in:
Maciej Suminski 2015-07-03 20:58:12 +02:00
parent 3cb095b7c2
commit 1b208e0a5e
1 changed files with 4 additions and 2 deletions

View File

@ -432,8 +432,10 @@ bool SELECTION_TOOL::selectMultiple()
}
}
// Do not display information about selected item,as there is more than one
m_frame->SetCurItem( NULL );
if( m_selection.Size() == 1 )
m_frame->SetCurItem( m_selection.Item<BOARD_ITEM>( 0 ) );
else
m_frame->SetCurItem( NULL );
if( !m_selection.Empty() )
{