Honour aQuitOnDraw flag when cancelling a segment.
Fixes https://gitlab.com/kicad/code/kicad/issues/12832
This commit is contained in:
parent
cf581137d8
commit
5aa8f9880e
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue