Don't exit wire tool at end of wire.

Fixes: lp:1825871
* https://bugs.launchpad.net/kicad/+bug/1825871
This commit is contained in:
Jeff Young 2019-04-22 22:13:29 +01:00
parent 1a007c3e4b
commit f6d0166584
1 changed files with 3 additions and 3 deletions

View File

@ -929,7 +929,7 @@ int SCH_DRAWING_TOOL::doDrawSegments( int aType, SCH_LINE* aSegment )
if( aSegment || m_busUnfold.in_progress )
{
finishSegments();
break;
aSegment = nullptr;
}
}
else if( evt->IsClick( BUT_RIGHT ) )
@ -969,7 +969,7 @@ int SCH_DRAWING_TOOL::doDrawSegments( int aType, SCH_LINE* aSegment )
m_frame->GetScreen()->IsTerminalPoint( cursorPos, aSegment->GetLayer() ) )
{
finishSegments();
break;
aSegment = nullptr;
}
aSegment->SetEndPoint( cursorPos );
@ -987,7 +987,7 @@ int SCH_DRAWING_TOOL::doDrawSegments( int aType, SCH_LINE* aSegment )
if( evt->IsDblClick( BUT_LEFT ) )
{
finishSegments();
break;
aSegment = nullptr;
}
}
else if( evt->IsMotion() )