Don't start immediate mode when there's no event position.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17332
This commit is contained in:
Jeff Young 2024-03-29 18:25:46 +00:00
parent 02f6d38fe3
commit 43edc2eaf8
1 changed files with 0 additions and 2 deletions

View File

@ -1081,8 +1081,6 @@ int DRAWING_TOOL::DrawTable( const TOOL_EVENT& aEvent )
if( aEvent.HasPosition() )
m_toolMgr->PrimeTool( aEvent.Position() );
else if( common_settings->m_Input.immediate_actions && !aEvent.IsReactivate() )
m_toolMgr->PrimeTool( { 0, 0 } );
// Main loop: keep receiving events
while( TOOL_EVENT* evt = Wait() )