Takes into account hidden module text settings.

This commit is contained in:
Maciej Suminski 2014-02-03 07:22:31 -06:00 committed by Dick Hollenbeck
commit 63bc40b58e
2 changed files with 24 additions and 17 deletions

View File

@ -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
} }
break; break;
} }
}
aCount = 1; aCount = 1;
} }

View File

@ -240,7 +240,7 @@ void RN_NET::compute()
return; return;
} }
else if( boardNodes.size() == 1 ) // This case is even simpler else if( boardNodes.size() <= 1 ) // This case is even simpler
{ {
m_rnEdges.reset( new std::vector<RN_EDGE_PTR>( 0 ) ); m_rnEdges.reset( new std::vector<RN_EDGE_PTR>( 0 ) );