Browse Source

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

pull/5/merge
jean-pierre charras 8 years ago
parent
commit
997d4dee4f
  1. 3
      pcbnew/dialogs/dialog_layers_setup.cpp
  2. 4
      pcbnew/print_board_functions.cpp

3
pcbnew/dialogs/dialog_layers_setup.cpp

@ -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;
}

4
pcbnew/print_board_functions.cpp

@ -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…
Cancel
Save