Promote found items to visible during find & replace.

Fixes: lp:1849875
* https://bugs.launchpad.net/kicad/+bug/1849875
This commit is contained in:
Jeff Young 2019-10-31 16:24:23 +00:00
parent 872826085a
commit caf5d01530
1 changed files with 4 additions and 4 deletions

View File

@ -523,7 +523,7 @@ void SCH_PAINTER::draw( LIB_FIELD *aField, int aLayer )
if( !aField->IsVisible() )
{
if( m_schSettings.m_ShowHiddenText )
if( m_schSettings.m_ShowHiddenText || aField->IsBrightened() )
color = getRenderColor( aField, LAYER_HIDDEN, drawingShadows );
else
return;
@ -568,7 +568,7 @@ void SCH_PAINTER::draw( LIB_TEXT *aText, int aLayer )
if( !aText->IsVisible() )
{
if( m_schSettings.m_ShowHiddenText )
if( m_schSettings.m_ShowHiddenText || aText->IsBrightened() )
color = getRenderColor( aText, LAYER_HIDDEN, drawingShadows );
else
return;
@ -1171,7 +1171,7 @@ void SCH_PAINTER::draw( SCH_TEXT *aText, int aLayer )
if( !aText->IsVisible() )
{
if( m_schSettings.m_ShowHiddenText )
if( m_schSettings.m_ShowHiddenText || aText->IsBrightened() )
color = getRenderColor( aText, LAYER_HIDDEN, drawingShadows );
else
return;
@ -1335,7 +1335,7 @@ void SCH_PAINTER::draw( SCH_FIELD *aField, int aLayer )
if( !aField->IsVisible() )
{
if( m_schSettings.m_ShowHiddenText )
if( m_schSettings.m_ShowHiddenText || aField->IsBrightened() )
color = getRenderColor( aField, LAYER_HIDDEN, drawingShadows );
else
return;