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
This commit is contained in:
John Beard 2019-04-27 14:26:19 +01:00
parent df228a3c10
commit 33fe9a2761
1 changed files with 5 additions and 2 deletions

View File

@ -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<wxConfigBase> eeschemaConfig = GetNewConfig( Pgm().App().GetAppName() );
wxConfigBase& commonConfig = *Pgm().CommonSettings();
m_galDisplayOptions.ReadConfig( commonConfig, *eeschemaConfig, eeschemaFrameKey, this );
EDA_DRAW_PANEL_GAL::GAL_TYPE canvasType = aCanvasType;