From 8507ffa3386359ee2994eeea2dcfb34f47f6fb00 Mon Sep 17 00:00:00 2001 From: Jan Wichmann Date: Tue, 12 Mar 2024 16:56:34 +0100 Subject: [PATCH] pcb_calculator: Shows the first page at the first start. --- pcb_calculator/pcb_calculator_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcb_calculator/pcb_calculator_settings.cpp b/pcb_calculator/pcb_calculator_settings.cpp index 484dd3a286..2137e6d1e9 100644 --- a/pcb_calculator/pcb_calculator_settings.cpp +++ b/pcb_calculator/pcb_calculator_settings.cpp @@ -35,7 +35,7 @@ const int pcbCalculatorSchemaVersion = 0; PCB_CALCULATOR_SETTINGS::PCB_CALCULATOR_SETTINGS() : APP_SETTINGS_BASE( "pcb_calculator", pcbCalculatorSchemaVersion ), m_Attenuators(), - m_BoardClassUnits( 0 ), m_ColorCodeTolerance( 0 ), m_Electrical(), m_LastPage( 0 ), + m_BoardClassUnits( 0 ), m_ColorCodeTolerance( 0 ), m_Electrical(), m_LastPage( 1 ), m_Regulators(), m_cableSize(), m_wavelength(), m_TrackWidth(), m_TransLine(), m_ViaSize() { // Build settings: @@ -43,7 +43,7 @@ PCB_CALCULATOR_SETTINGS::PCB_CALCULATOR_SETTINGS() : m_params.emplace_back( new PARAM( "color_code_tolerance", &m_ColorCodeTolerance, 0 ) ); - m_params.emplace_back( new PARAM( "last_page", &m_LastPage, 0 ) ); + m_params.emplace_back( new PARAM( "last_page", &m_LastPage, 1 ) ); m_params.emplace_back( new PARAM( "translines.type", &m_TransLine.type, 0 ) );