Fixed selection disambiguation menu for wx2.8
This commit is contained in:
parent
6409f7f96b
commit
d895a90bdc
|
@ -350,7 +350,7 @@ BOARD_ITEM* SELECTION_TOOL::disambiguationMenu( GENERAL_COLLECTOR* aCollector )
|
||||||
int id = *evt->GetCommandId();
|
int id = *evt->GetCommandId();
|
||||||
|
|
||||||
// User has pointed an item, so show it in a different way
|
// User has pointed an item, so show it in a different way
|
||||||
if( id >= 0 )
|
if( id >= 0 && id < limit )
|
||||||
{
|
{
|
||||||
current = ( *aCollector )[id];
|
current = ( *aCollector )[id];
|
||||||
current->SetBrightened();
|
current->SetBrightened();
|
||||||
|
|
Loading…
Reference in New Issue