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

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
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment