Fixed top layer pads netnames issue.

This commit is contained in:
Maciej Suminski 2013-07-29 14:20:40 +02:00
parent be012cac94
commit bd182aad9f
2 changed files with 9 additions and 1 deletions

View File

@ -360,7 +360,7 @@ public:
*/
bool IsDynamic() const { return m_dynamic; }
static const int VIEW_MAX_LAYERS = 64; ///* maximum number of layers that may be shown
static const int VIEW_MAX_LAYERS = 128; ///* maximum number of layers that may be shown
private:
struct VIEW_LAYER

View File

@ -824,6 +824,14 @@ void PCB_EDIT_FRAME::syncLayerVisibilities()
{
view->SetLayerVisible( ITEM_GAL_LAYER( i ), m_Pcb->IsElementVisible( i ) );
}
// Enable some layers that are GAL specific
for( LAYER_NUM i = FIRST_NETNAME_LAYER; i < LAST_NETNAME_LAYER; ++i )
{
view->SetLayerVisible( i, true );
}
view->SetLayerVisible( ITEM_GAL_LAYER( PADS_HOLES_VISIBLE ), true );
view->SetLayerVisible( ITEM_GAL_LAYER( VIAS_HOLES_VISIBLE ), true );
}