Commit 8e601974 authored by Maciej Suminski's avatar Maciej Suminski

GAL takes into account hidden module text settings.

parent e537480f
...@@ -417,6 +417,12 @@ EDA_ITEM* TEXTE_MODULE::Clone() const ...@@ -417,6 +417,12 @@ EDA_ITEM* TEXTE_MODULE::Clone() const
void TEXTE_MODULE::ViewGetLayers( int aLayers[], int& aCount ) const void TEXTE_MODULE::ViewGetLayers( int aLayers[], int& aCount ) const
{ {
if( m_NoShow ) // Hidden text
{
aLayers[0] = ITEM_GAL_LAYER( MOD_TEXT_INVISIBLE );
}
else
{
switch( m_Type ) switch( m_Type )
{ {
case TEXT_is_REFERENCE: case TEXT_is_REFERENCE:
...@@ -440,6 +446,7 @@ void TEXTE_MODULE::ViewGetLayers( int aLayers[], int& aCount ) const ...@@ -440,6 +446,7 @@ void TEXTE_MODULE::ViewGetLayers( int aLayers[], int& aCount ) const
} }
break; break;
} }
}
aCount = 1; aCount = 1;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment