From 027658d3da0d7d924915761fadfd247fdff12973 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 6 Oct 2019 11:12:17 +0200 Subject: [PATCH] Fix invalid cursor position access in tool manager Fixes: lp:1846923 * https://bugs.launchpad.net/kicad/+bug/1846923 --- common/tool/tool_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index 5d59660824..02b288ea60 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -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() )