From 696619fdb6b620be0e16f79f1ac84c5b67cade13 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 30 Oct 2021 20:31:48 +0100 Subject: [PATCH] Larger set (and larger default) of grid sizes for drawing sheet editor. Fixes https://gitlab.com/kicad/code/kicad/issues/9494 --- common/settings/app_settings.cpp | 2 +- pagelayout_editor/pl_editor_frame.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/settings/app_settings.cpp b/common/settings/app_settings.cpp index 63eb047503..968b140b9b 100644 --- a/common/settings/app_settings.cpp +++ b/common/settings/app_settings.cpp @@ -298,7 +298,7 @@ void APP_SETTINGS_BASE::addParamsForWindow( WINDOW_SETTINGS* aWindow, const std: int defaultGridIdx; - if( m_filename == "eeschema" || m_filename == "symbol_editor" ) + if( m_filename == "eeschema" || m_filename == "symbol_editor" || m_filename == "pl_editor" ) defaultGridIdx = 1; else defaultGridIdx = 4; diff --git a/pagelayout_editor/pl_editor_frame.cpp b/pagelayout_editor/pl_editor_frame.cpp index 26cafe3b10..127201fd91 100644 --- a/pagelayout_editor/pl_editor_frame.cpp +++ b/pagelayout_editor/pl_editor_frame.cpp @@ -498,7 +498,10 @@ void PL_EDITOR_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg ) if( aCfg->m_Window.grid.sizes.empty() ) { - aCfg->m_Window.grid.sizes = { "1.0 mm", + aCfg->m_Window.grid.sizes = { "5.00 mm", + "2.50 mm", + "2.00 mm", + "1.00 mm", "0.50 mm", "0.25 mm", "0.20 mm",