From 924c0fa9ed59ad0b906d34472a437418513f7049 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 17 Oct 2018 11:13:32 +0100 Subject: [PATCH] Fetch symbol chooser grid settings from the right place. --- eeschema/widgets/symbol_preview_widget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/widgets/symbol_preview_widget.cpp b/eeschema/widgets/symbol_preview_widget.cpp index d994809e79..0ab957e686 100644 --- a/eeschema/widgets/symbol_preview_widget.cpp +++ b/eeschema/widgets/symbol_preview_widget.cpp @@ -28,6 +28,8 @@ #include #include #include +#include + SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aKiway, EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType ) : @@ -38,8 +40,9 @@ SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aKiway, m_statusSizer( nullptr ), m_previewItem( nullptr ) { - wxConfigBase* eeschemaConfig = GetNewConfig( wxString::FromUTF8( "eeschema" ) ); - m_galDisplayOptions.ReadConfig( eeschemaConfig, GAL_DISPLAY_OPTIONS_KEY ); + wxString eeschemaFrameKey( SCH_EDIT_FRAME_NAME ); + wxConfigBase* eeschemaConfig = GetNewConfig( Pgm().App().GetAppName() ); + m_galDisplayOptions.ReadConfig( eeschemaConfig, eeschemaFrameKey + GAL_DISPLAY_OPTIONS_KEY ); EDA_DRAW_PANEL_GAL::GAL_TYPE canvasType = aCanvasType;