FP Editor: show hidden texts when we should

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16909
This commit is contained in:
Mike Williams 2024-02-08 10:27:58 -05:00
parent f8b8bc78bd
commit b979f52364
1 changed files with 2 additions and 1 deletions

View File

@ -2042,7 +2042,8 @@ void PCB_PAINTER::draw( const PCB_TEXT* aText, int aLayer )
{
wxString resolvedText( aText->GetShownText( true ) );
if( resolvedText.Length() == 0 || !aText->GetAttributes().m_Visible )
if( resolvedText.Length() == 0
|| !( aText->GetAttributes().m_Visible || aLayer == LAYER_HIDDEN_TEXT ) )
return;
if( aLayer == LAYER_LOCKED_ITEM_SHADOW ) // happens only if locked