Honour aQuitOnDraw flag when cancelling a segment.

Fixes https://gitlab.com/kicad/code/kicad/issues/12832
This commit is contained in:
Jeff Young 2022-11-04 17:34:43 +00:00
parent cf581137d8
commit 5aa8f9880e
1 changed files with 6 additions and 0 deletions

View File

@ -708,6 +708,12 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const TOOL_EVENT& aTool, int aType,
if( segment || m_busUnfold.in_progress )
{
cleanup();
if( aQuitOnDraw )
{
m_frame->PopTool( aTool );
break;
}
}
else
{