From 560abfa30a0c5d5c4404bd18c2e5c7fdc7f75135 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 15 Apr 2011 16:10:20 +0200 Subject: [PATCH] gr_basic.cpp: fix a bug I created in my last commit. Pcbnew: fix a very minor bug in hight light behavior --- common/gr_basic.cpp | 2 +- pcbnew/move_or_drag_track.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/gr_basic.cpp b/common/gr_basic.cpp index 522ec0ca97..e36ec126be 100644 --- a/common/gr_basic.cpp +++ b/common/gr_basic.cpp @@ -626,7 +626,7 @@ void GRLineArray( EDA_RECT* aClipBox, wxDC* aDC, std::vector& 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 ) diff --git a/pcbnew/move_or_drag_track.cpp b/pcbnew/move_or_drag_track.cpp index 3d9039f7ed..9a3eceb40a 100644 --- a/pcbnew/move_or_drag_track.cpp +++ b/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 );