Fallback to normal undo when wire-drawing not in progress.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16216
(cherry picked from commit 035725cd5d
)
This commit is contained in:
parent
874f7fbdff
commit
09bae9bb14
|
@ -937,6 +937,11 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const TOOL_EVENT& aTool, int aType,
|
||||||
m_view->AddToPreview( wire->Clone() );
|
m_view->AddToPreview( wire->Clone() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if( evt->IsAction( &ACTIONS::undo ) )
|
||||||
|
{
|
||||||
|
// Dispatch as normal undo event
|
||||||
|
evt->SetPassEvent();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxBell();
|
wxBell();
|
||||||
|
|
Loading…
Reference in New Issue