Eeschema: fix bug that creates duplicate segments instead of breaking them at junctions points.

Duplicate segments where created in drag command and netlist calculations.
This commit is contained in:
jean-pierre charras 2011-12-23 09:16:36 +01:00
parent 1983b2db05
commit 750dd6eeac
1 changed files with 2 additions and 2 deletions

View File

@ -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;