Minor fixes (fix a compil warning, and a incorrectly sized dialog)
This commit is contained in:
parent
dfb0dc4dd5
commit
997d4dee4f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue