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

@ -416,6 +416,12 @@ EDA_ITEM* TEXTE_MODULE::Clone() 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 )
{
@ -440,6 +446,7 @@ void TEXTE_MODULE::ViewGetLayers( int aLayers[], int& aCount ) const
}
break;
}
}
aCount = 1;
}

View File

@ -240,7 +240,7 @@ void RN_NET::compute()
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 ) );