Commit 560abfa3 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

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

gr_basic.cpp: fix a bug I created in my last commit. Pcbnew: fix a very minor bug in hight light behavior
parent ce983218
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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 );