From 8e6fe0eaf0f5cb8460e29c734acca785c909c910 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 14 Feb 2024 11:21:55 +0100 Subject: [PATCH] Gerbview settings: store option "Page Limits" in gerbview config. Previously this appearance option in Layer Manager was not stored. --- gerbview/gerbview_settings.cpp | 5 ++++- pcbnew/exporters/gendrill_gerber_writer.cpp | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gerbview/gerbview_settings.cpp b/gerbview/gerbview_settings.cpp index c9b04622b3..bb21052cc2 100644 --- a/gerbview/gerbview_settings.cpp +++ b/gerbview/gerbview_settings.cpp @@ -1,7 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * -* Copyright (C) 2021-2022 KiCad Developers, see AUTHORS.txt for contributors. +* Copyright (C) 2021-2024 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -53,6 +53,9 @@ GERBVIEW_SETTINGS::GERBVIEW_SETTINGS() : m_params.emplace_back( new PARAM( "appearance.page_type", &m_Appearance.page_type, "GERBER" ) ); + m_params.emplace_back( new PARAM( "appearance.show_page_limit", + &m_Display.m_DisplayPageLimits, false ) ); + m_params.emplace_back( new PARAM_LIST( "system.drill_file_history", &m_DrillFileHistory, {} ) ); diff --git a/pcbnew/exporters/gendrill_gerber_writer.cpp b/pcbnew/exporters/gendrill_gerber_writer.cpp index 9fdd4aff55..18afd53f9f 100644 --- a/pcbnew/exporters/gendrill_gerber_writer.cpp +++ b/pcbnew/exporters/gendrill_gerber_writer.cpp @@ -134,7 +134,7 @@ bool GERBER_WRITER::CreateDrillandMapFilesSet( const wxString& aPlotDirectory, b #if !FLASH_OVAL_HOLE // A helper class to transform an oblong hole to a segment -static void convertOblong2Segment( VECTOR2I& aSize, const EDA_ANGLE& aOrient, VECTOR2I& aStart, VECTOR2I& aEnd ); +static void convertOblong2Segment( const VECTOR2I& aSize, const EDA_ANGLE& aOrient, VECTOR2I& aStart, VECTOR2I& aEnd ); #endif @@ -267,7 +267,7 @@ int GERBER_WRITER::createDrillFile( wxString& aFullFilename, bool aIsNpth, #if !FLASH_OVAL_HOLE -void convertOblong2Segment( VECTOR2I& aSize, const EDA_ANGLE& aOrient, VECTOR2I& aStart, +void convertOblong2Segment( const VECTOR2I& aSize, const EDA_ANGLE& aOrient, VECTOR2I& aStart, VECTOR2I& aEnd ) { VECTOR2I size( aSize );