Clean up tuning pattern if undo triggered during drag

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16718
This commit is contained in:
Marek Roszko 2024-01-28 16:10:46 -05:00
parent 93b9fb9124
commit 5c94e0287b
1 changed files with 2 additions and 1 deletions

View File

@ -2094,7 +2094,8 @@ int DRAWING_TOOL::PlaceTuningPattern( const TOOL_EVENT& aEvent )
setCursor();
VECTOR2D cursorPos = controls->GetMousePosition();
if( evt->IsCancelInteractive() || evt->IsActivate() )
if( evt->IsCancelInteractive() || evt->IsActivate()
|| ( m_tuningPattern && evt->IsAction( &ACTIONS::undo ) ) )
{
if( m_tuningPattern )
{