pcbnew: highlight net highlights ratnsest too

Fixes: lp:1738636
* https://bugs.launchpad.net/kicad/+bug/1738636
This commit is contained in:
Tomasz Włostowski 2017-12-18 14:58:06 +01:00
parent 1f78de409f
commit 9da1dc4c51
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void RATSNEST_VIEWITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
int highlightedNet = rs->GetHighlightNetCode();
gal->SetStrokeColor( color.Brightened(0.8) );
gal->SetStrokeColor( color.Brightened(0.5) );
// Draw the "dynamic" ratsnest (i.e. for objects that may be currently being moved)
for( const auto& l : m_data->GetDynamicRatsnest() )
@ -95,6 +95,8 @@ void RATSNEST_VIEWITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
// Draw the "static" ratsnest
if( i != highlightedNet )
gal->SetStrokeColor( color ); // using the default ratsnest color for not highlighted
else
gal->SetStrokeColor( color.Brightened(0.8) );
for( const auto& edge : net->GetUnconnected() )
{