Fix Pcbnew bug: print dialog: layers not listed in dialog (Linux specific)

This commit is contained in:
jean-pierre charras 2016-06-18 17:47:05 +02:00
parent dbd9b5e49e
commit 68f0503586
1 changed files with 10 additions and 2 deletions

View File

@ -176,12 +176,20 @@ void DIALOG_PRINT_USING_PRINTER::initValues( )
{
LAYER_ID layer = *seq;
m_BoxSelectLayer[layer] = new wxCheckBox( this, -1, board->GetLayerName( layer ) );
if( IsCopperLayer( layer ) )
{
m_BoxSelectLayer[layer] = new wxCheckBox(
m_CopperLayersBoxSizer->GetStaticBox(),
wxID_ANY, board->GetLayerName( layer ) );
m_CopperLayersBoxSizer->Add( m_BoxSelectLayer[layer], 0, wxGROW | wxALL, 1 );
}
else
{
m_BoxSelectLayer[layer] = new wxCheckBox(
m_TechnicalLayersBoxSizer->GetStaticBox(),
wxID_ANY, board->GetLayerName( layer ) );
m_TechnicalLayersBoxSizer->Add( m_BoxSelectLayer[layer], 0, wxGROW | wxALL, 1 );
}
layerKey.Printf( OPTKEY_LAYERBASE, layer );