From 997d4dee4f8ee479f3654cce38b36317077f9e2f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 22 Feb 2018 14:29:33 +0100 Subject: [PATCH] Minor fixes (fix a compil warning, and a incorrectly sized dialog) --- pcbnew/dialogs/dialog_layers_setup.cpp | 3 +++ pcbnew/print_board_functions.cpp | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_layers_setup.cpp b/pcbnew/dialogs/dialog_layers_setup.cpp index 3d71e0ac35..28b4d2d33c 100644 --- a/pcbnew/dialogs/dialog_layers_setup.cpp +++ b/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; } diff --git a/pcbnew/print_board_functions.cpp b/pcbnew/print_board_functions.cpp index 3f87cdea12..b44b396f05 100644 --- a/pcbnew/print_board_functions.cpp +++ b/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 )