Browse Source

Clean up tuning pattern if undo triggered during drag

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16718
newinvert
Marek Roszko 2 years ago
parent
commit
5c94e0287b
  1. 3
      pcbnew/generators/pcb_tuning_pattern.cpp

3
pcbnew/generators/pcb_tuning_pattern.cpp

@ -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…
Cancel
Save