Fix uninitialized variable in PCBNEW_CONTROL::CursorControl

This commit is contained in:
Simon Wells 2016-01-11 17:12:49 -05:00 committed by Chris Pavlina
parent 712ff51d3f
commit a88e61a6e0
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ int PCBNEW_CONTROL::CursorControl( const TOOL_EVENT& aEvent )
case COMMON_ACTIONS::CURSOR_CLICK: // fall through
case COMMON_ACTIONS::CURSOR_DBL_CLICK:
{
TOOL_ACTIONS action;
TOOL_ACTIONS action = TA_NONE;
int modifiers = 0;
modifiers |= wxGetKeyState( WXK_SHIFT ) ? MD_SHIFT : 0;