Minor fixes (fix a compil warning, and a incorrectly sized dialog)

This commit is contained in:
jean-pierre charras 2018-02-22 14:29:33 +01:00
parent dfb0dc4dd5
commit 997d4dee4f
2 changed files with 3 additions and 4 deletions

View File

@ -383,6 +383,9 @@ bool DIALOG_LAYERS_SETUP::TransferDataToWindow()
showPresets( m_enabledLayers );
showLayerTypes();
// All widgets are now initialized. Fix the min sizes:
GetSizer()->SetSizeHints( this );
return true;
}

View File

@ -112,14 +112,10 @@ void PCB_EDIT_FRAME::PrintPage( wxDC* aDC,
PCB_DISPLAY_OPTIONS save_opt;
BOARD* Pcb = GetBoard();
int defaultPenSize = Millimeter2iu( 0.2 );
bool onePagePerLayer = false;
PRINT_PARAMETERS* printParameters = (PRINT_PARAMETERS*) aData; // can be null
auto displ_opts = (PCB_DISPLAY_OPTIONS*) GetDisplayOptions();
if( printParameters && printParameters->m_OptionPrintPage == 0 )
onePagePerLayer = true;
PRINT_PARAMETERS::DrillShapeOptT drillShapeOpt = PRINT_PARAMETERS::FULL_DRILL_SHAPE;
if( printParameters )