Fallback to normal undo when wire-drawing not in progress.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16216
This commit is contained in:
parent
96e229de0a
commit
035725cd5d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue