Clean up tuning pattern if undo triggered during drag
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16718
This commit is contained in:
parent
93b9fb9124
commit
5c94e0287b
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue