GAL canvas highlight net mode works on all layers.

This commit is contained in:
Maciej Suminski 2015-09-01 11:27:38 +02:00
parent dba0494b02
commit 8b8098d228
1 changed files with 7 additions and 7 deletions

View File

@ -173,18 +173,18 @@ const COLOR4D& PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer
netCode = conItem->GetNetCode();
}
// Single net highlight mode
if( m_highlightEnabled && netCode == m_highlightNetcode )
return m_layerColorsHi[aLayer];
// Return grayish color for non-highlighted layers in the high contrast mode
if( m_hiContrastEnabled && m_activeLayers.count( aLayer ) == 0 )
return m_hiContrastColor;
// Single net highlight mode
// Catch the case when highlight and high-contraste modes are enabled
// and we are drawing a not highlighted track
if( m_highlightEnabled )
{
if( netCode == m_highlightNetcode )
return m_layerColorsHi[aLayer];
else
return m_layerColorsDark[aLayer];
}
return m_layerColorsDark[aLayer];
// No special modificators enabled
return m_layerColors[aLayer];