Browse Source

gr_basic.cpp: fix a bug I created in my last commit. Pcbnew: fix a very minor bug in hight light behavior

pull/1/head
jean-pierre charras 15 years ago
parent
commit
560abfa30a
  1. 2
      common/gr_basic.cpp
  2. 8
      pcbnew/move_or_drag_track.cpp

2
common/gr_basic.cpp

@ -626,7 +626,7 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector<wxPoint>& aLines,
int y2 = aLines[i+1].y;
GRLastMoveToX = x2;
GRLastMoveToY = y2;
if( ( aClipBox == NULL ) || clipLine( aClipBox, x1, y1, x2, y2 ) )
if( ( aClipBox == NULL ) || !clipLine( aClipBox, x1, y1, x2, y2 ) )
aDC->DrawLine( x1, y1, x2, y2 );
}
if( aClipBox )

8
pcbnew/move_or_drag_track.cpp

@ -1014,6 +1014,14 @@ bool PCB_EDIT_FRAME::PlaceDraggedOrMovedTrackSegment( TRACK* Track, wxDC* DC )
s_ItemsListPicker.ClearItemsList(); // s_ItemsListPicker is no more owner
// of picked items
if( GetBoard()->IsHightLightNetON() )
High_Light( DC );
GetBoard()->PopHightLight();
if( GetBoard()->IsHightLightNetON() )
GetBoard()->DrawHighLight( DrawPanel, DC, GetBoard()->GetHightLightNetCode() );
OnModify();
DrawPanel->SetMouseCapture( NULL, NULL );

Loading…
Cancel
Save