Do not cache invisible text objects
In some cases, extremely long, invisible texts can fill and crash opengl buffers
This commit is contained in:
parent
8efd90e6e8
commit
6e0d97df76
|
@ -2042,7 +2042,7 @@ void PCB_PAINTER::draw( const PCB_TEXT* aText, int aLayer )
|
|||
{
|
||||
wxString resolvedText( aText->GetShownText( true ) );
|
||||
|
||||
if( resolvedText.Length() == 0 )
|
||||
if( resolvedText.Length() == 0 || !aText->GetAttributes().m_Visible )
|
||||
return;
|
||||
|
||||
if( aLayer == LAYER_LOCKED_ITEM_SHADOW ) // happens only if locked
|
||||
|
|
Loading…
Reference in New Issue