Browse Source

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

Duplicate segments where created in drag command and netlist calculations.
pull/1/head
jean-pierre charras 14 years ago
parent
commit
750dd6eeac
  1. 4
      eeschema/sch_screen.cpp

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

Loading…
Cancel
Save