diff --git a/pcbnew/dialogs/dialog_print_using_printer.cpp b/pcbnew/dialogs/dialog_print_using_printer.cpp index 93c387608c..9a35cd8229 100644 --- a/pcbnew/dialogs/dialog_print_using_printer.cpp +++ b/pcbnew/dialogs/dialog_print_using_printer.cpp @@ -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 );