From 750dd6eeaccc2ba5cf291213822c375a0d0d9ee2 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 23 Dec 2011 09:16:36 +0100 Subject: [PATCH] Eeschema: fix bug that creates duplicate segments instead of breaking them at junctions points. Duplicate segments where created in drag command and netlist calculations. --- eeschema/sch_screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp index 797da93e32..069779328e 100644 --- a/eeschema/sch_screen.cpp +++ b/eeschema/sch_screen.cpp @@ -970,8 +970,8 @@ bool SCH_SCREEN::BreakSegment( const wxPoint& aPoint ) // Break the segment at aPoint and create a new segment. newSegment = new SCH_LINE( *segment ); - newSegment->GetStartPoint() = aPoint; - segment->GetEndPoint() = newSegment->GetStartPoint(); + newSegment->SetStartPoint( aPoint ); + segment->SetEndPoint( aPoint ); newSegment->SetNext( segment->Next() ); segment->SetNext( newSegment ); item = newSegment;