pcbnew: highlight net highlights ratnsest too
Fixes: lp:1738636 * https://bugs.launchpad.net/kicad/+bug/1738636
This commit is contained in:
parent
1f78de409f
commit
9da1dc4c51
|
@ -71,7 +71,7 @@ void RATSNEST_VIEWITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
|
||||||
|
|
||||||
int highlightedNet = rs->GetHighlightNetCode();
|
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)
|
// Draw the "dynamic" ratsnest (i.e. for objects that may be currently being moved)
|
||||||
for( const auto& l : m_data->GetDynamicRatsnest() )
|
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
|
// Draw the "static" ratsnest
|
||||||
if( i != highlightedNet )
|
if( i != highlightedNet )
|
||||||
gal->SetStrokeColor( color ); // using the default ratsnest color for not highlighted
|
gal->SetStrokeColor( color ); // using the default ratsnest color for not highlighted
|
||||||
|
else
|
||||||
|
gal->SetStrokeColor( color.Brightened(0.8) );
|
||||||
|
|
||||||
for( const auto& edge : net->GetUnconnected() )
|
for( const auto& edge : net->GetUnconnected() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue