diff --git a/eeschema/controle.cpp b/eeschema/controle.cpp index 53225f67db..cb049bb103 100644 --- a/eeschema/controle.cpp +++ b/eeschema/controle.cpp @@ -182,7 +182,7 @@ SCH_ITEM* SCH_EDIT_FRAME::LocateItem( const wxPoint& aPosition, const KICAD_T aF { wxString text = m_collectedItems[i]->GetSelectMenuText(); BITMAP_DEF xpm = m_collectedItems[i]->GetMenuImage(); - AddMenuItem( &selectMenu, + i, text, KiBitmap( xpm ) ); + AddMenuItem( &selectMenu, ID_SELECT_ITEM_START + i, text, KiBitmap( xpm ) ); } // Set to NULL in case the user aborts the clarification context menu.