Fallback to normal undo when wire-drawing not in progress.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16216
This commit is contained in:
Jeff Young 2023-12-12 16:06:44 +00:00
parent 96e229de0a
commit 035725cd5d
1 changed files with 5 additions and 0 deletions

View File

@ -910,6 +910,11 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const TOOL_EVENT& aTool, int aType,
m_view->AddToPreview( wire->Clone() );
}
}
else if( evt->IsAction( &ACTIONS::undo ) )
{
// Dispatch as normal undo event
evt->SetPassEvent();
}
else
{
wxBell();