Eeschema: fix compil issue with wxWidgets 2.8.12

This commit is contained in:
jean-pierre charras 2012-12-08 20:36:28 +01:00
parent ba05519662
commit 926dec84a5
1 changed files with 8 additions and 7 deletions

View File

@ -251,22 +251,23 @@ void AddMenusForComponentField( wxMenu* PopMenu, SCH_FIELD* Field )
{
wxString msg, name;
name << wxT(" ");
switch( Field->GetId() )
{
case REFERENCE: name = _( "Reference" ); break;
case VALUE: name = _( "Value" ); break;
case FOOTPRINT: name = _( "Footprint Field" ); break;
default: name = _( "Field" ); break;
case REFERENCE: name << _( "Reference" ); break;
case VALUE: name << _( "Value" ); break;
case FOOTPRINT: name << _( "Footprint Field" ); break;
default: name << _( "Field" ); break;
}
if( !Field->GetFlags() )
{
msg = AddHotkeyName( _( "Move" ) + wxT(" ") + name, s_Schematic_Hokeys_Descr,
msg = AddHotkeyName( _( "Move" ) + name, s_Schematic_Hokeys_Descr,
HK_MOVE_COMPONENT_OR_ITEM );
AddMenuItem( PopMenu, ID_SCH_MOVE_ITEM, msg, KiBitmap( move_text_xpm ) );
}
msg = AddHotkeyName( _( "Rotate" ) + wxT(" ") + name, s_Schematic_Hokeys_Descr,
msg = AddHotkeyName( _( "Rotate" ) + name, s_Schematic_Hokeys_Descr,
HK_ROTATE );
AddMenuItem( PopMenu, ID_SCH_ROTATE_CLOCKWISE, msg, KiBitmap( rotate_field_xpm ) );
@ -279,7 +280,7 @@ void AddMenusForComponentField( wxMenu* PopMenu, SCH_FIELD* Field )
case FOOTPRINT: id = HK_EDIT_COMPONENT_FOOTPRINT; break;
default: id = HK_EDIT; break;
}
msg = AddHotkeyName( _( "Edit" ) + wxT(" ") + name, s_Schematic_Hokeys_Descr, id );
msg = AddHotkeyName( _( "Edit" ) + name, s_Schematic_Hokeys_Descr, id );
AddMenuItem( PopMenu, ID_SCH_EDIT_ITEM, msg, KiBitmap( edit_text_xpm ) );
}