Fix invalid cursor position access in tool manager

Fixes: lp:1846923
* https://bugs.launchpad.net/kicad/+bug/1846923
This commit is contained in:
Ian McInerney
2019-10-06 13:26:07 +02:00
committed by jean-pierre charras
parent 36e986629a
commit 027658d3da
+1 -1
View File
@@ -355,7 +355,7 @@ bool TOOL_MANAGER::invokeTool( TOOL_BASE* aTool )
wxASSERT( aTool != NULL );
TOOL_EVENT evt( TC_COMMAND, TA_ACTIVATE, aTool->GetName() );
evt.SetMousePosition( m_viewControls->GetCursorPosition() );
evt.SetMousePosition( GetCursorPosition() );
processEvent( evt );
if( TOOL_STATE* active = GetCurrentToolState() )