Warp after context menu only if actively drawing.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/11080

(cherry picked from commit 1a7152d3eb)
This commit is contained in:
Jeff Young
2024-02-23 16:53:32 +01:00
committed by Roberto Fernandez Bautista
parent e68cd04d48
commit e7f18e7eab
3 changed files with 22 additions and 0 deletions
+3
View File
@@ -348,7 +348,10 @@ int PCB_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
m_frame->GetCanvas()->ForceRefresh();
if( !selectionCancelled )
{
m_toolMgr->VetoContextMenuMouseWarp();
m_menu.ShowContextMenu( m_selection );
}
}
else if( evt->IsDblClick( BUT_LEFT ) )
{