From f6d0166584614a8cedaf4ea05e2ae37895efb7cb Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 22 Apr 2019 22:13:29 +0100 Subject: [PATCH] Don't exit wire tool at end of wire. Fixes: lp:1825871 * https://bugs.launchpad.net/kicad/+bug/1825871 --- eeschema/tools/sch_drawing_tool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/tools/sch_drawing_tool.cpp b/eeschema/tools/sch_drawing_tool.cpp index 2e32c6275d..72d4e360dc 100644 --- a/eeschema/tools/sch_drawing_tool.cpp +++ b/eeschema/tools/sch_drawing_tool.cpp @@ -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() )