Pcbnew: fix Bug #932509

This commit is contained in:
jean-pierre charras 2012-02-15 14:10:52 +01:00
parent 2153f4d1e2
commit a7d7e8dcc6
2 changed files with 5 additions and 2 deletions

View File

@ -415,7 +415,8 @@ void PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
break;
case HK_SWITCH_UNITS:
g_UserUnit = (g_UserUnit == INCHES) ? MILLIMETRES : INCHES;
evt_type = (g_UserUnit == INCHES) ?
ID_TB_OPTIONS_SELECT_UNIT_MM : ID_TB_OPTIONS_SELECT_UNIT_INCH;
break;
case HK_SWITCH_TRACK_DISPLAY_MODE:

View File

@ -60,7 +60,9 @@ void FOOTPRINT_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPos
break;
case HK_SWITCH_UNITS:
g_UserUnit = (g_UserUnit == INCHES) ? MILLIMETRES : INCHES;
cmd.SetId( (g_UserUnit == INCHES) ?
ID_TB_OPTIONS_SELECT_UNIT_MM : ID_TB_OPTIONS_SELECT_UNIT_INCH );
GetEventHandler()->ProcessEvent( cmd );
break;
case HK_ZOOM_IN: