Larger set (and larger default) of grid sizes for drawing sheet editor.

Fixes https://gitlab.com/kicad/code/kicad/issues/9494
This commit is contained in:
Jeff Young 2021-10-30 20:31:48 +01:00
parent e4ccff1d93
commit 696619fdb6
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -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",