From 65a6e341ad79b2691cc440fe68ce081c80f2a788 Mon Sep 17 00:00:00 2001 From: John Beard Date: Sat, 27 Apr 2019 14:26:19 +0100 Subject: [PATCH] Eeschema: Symbol preview widget needs common config for Hi-DPI Currently, this widget doesn't read the common library settings. This means it doesn't use the configured DPI scaling or anti-aliasing settings. Use the ReadConfig method on the GAL options to fix (rather than only ReadAppConfig). Fixes: lp:1825913 * https://bugs.launchpad.net/kicad/+bug/1825913 (cherry picked from commit 33fe9a276169ba54b22c88375c48d83c0cdfd09e) --- 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 bb33440880..1756acacf3 100644 --- a/eeschema/widgets/symbol_preview_widget.cpp +++ b/eeschema/widgets/symbol_preview_widget.cpp @@ -38,8 +38,11 @@ SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aKiway, m_preview( nullptr ), m_status( nullptr ), m_statusSizer( nullptr ), m_previewItem( nullptr ) { wxString eeschemaFrameKey( SCH_EDIT_FRAME_NAME ); - auto eeschemaConfig = GetNewConfig( Pgm().App().GetAppName() ); - m_galDisplayOptions.ReadAppConfig( *eeschemaConfig, eeschemaFrameKey ); + + std::unique_ptr eeschemaConfig = GetNewConfig( Pgm().App().GetAppName() ); + wxConfigBase& commonConfig = *Pgm().CommonSettings(); + + m_galDisplayOptions.ReadConfig( commonConfig, *eeschemaConfig, eeschemaFrameKey, this ); EDA_DRAW_PANEL_GAL::GAL_TYPE canvasType = aCanvasType;