diff --git a/common/tool/common_tools.cpp b/common/tool/common_tools.cpp index 04b3c8a93e..3802c2e305 100644 --- a/common/tool/common_tools.cpp +++ b/common/tool/common_tools.cpp @@ -143,7 +143,7 @@ int COMMON_TOOLS::CursorControl( const TOOL_EVENT& aEvent ) button = BUT_RIGHT; TOOL_EVENT evt( TC_MOUSE, action, button | modifiers ); - evt.SetParameter( type ); + evt.SetParameter( static_cast( type ) ); evt.SetMousePosition( getViewControls()->GetCursorPosition() ); m_toolMgr->ProcessEvent( evt );