Fixed selection disambiguation menu for wx2.8

This commit is contained in:
Maciej Sumiński 2013-09-29 21:23:45 +02:00
parent 5c0bc4913e
commit 248e37c292
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ BOARD_ITEM* SELECTION_TOOL::disambiguationMenu( GENERAL_COLLECTOR* aCollector )
int id = *evt->GetCommandId();
// User has pointed an item, so show it in a different way
if( id >= 0 )
if( id >= 0 && id < limit )
{
current = ( *aCollector )[id];
current->SetBrightened();