Commit 750dd6ee authored by jean-pierre charras's avatar jean-pierre charras
Browse files

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

Duplicate segments where created in drag command and netlist calculations.
parent 1983b2db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;