From 9da1dc4c51f49b07d0258e25ab9c167531d8e805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Mon, 18 Dec 2017 14:58:06 +0100 Subject: [PATCH] pcbnew: highlight net highlights ratnsest too Fixes: lp:1738636 * https://bugs.launchpad.net/kicad/+bug/1738636 --- pcbnew/ratsnest_viewitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/ratsnest_viewitem.cpp b/pcbnew/ratsnest_viewitem.cpp index 15127ce771..00867cebcc 100644 --- a/pcbnew/ratsnest_viewitem.cpp +++ b/pcbnew/ratsnest_viewitem.cpp @@ -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() ) {