Fix invalid cursor position access in tool manager
Fixes: lp:1846923 * https://bugs.launchpad.net/kicad/+bug/1846923
This commit is contained in:
parent
36e986629a
commit
027658d3da
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue