Commit d895a90b authored by Maciej Sumiński's avatar Maciej Sumiński

Fixed selection disambiguation menu for wx2.8

parent 6409f7f9
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment