Use footprint editor display and window settings for footprint viewer.

Fixes https://gitlab.com/kicad/code/kicad/issues/5737
This commit is contained in:
Jeff Young 2020-09-21 13:11:05 +01:00
parent b1160660d9
commit 719e8d276f
1 changed files with 2 additions and 2 deletions

View File

@ -760,9 +760,9 @@ void FOOTPRINT_VIEWER_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
PCB_BASE_FRAME::LoadSettings( aCfg );
// Fetch grid settings from Footprint Editor
// Fetch display and grid settings from Footprint Editor
auto fpedit = Pgm().GetSettingsManager().GetAppSettings<FOOTPRINT_EDITOR_SETTINGS>();
m_DisplayOptions = fpedit->m_Display;
GetGalDisplayOptions().ReadWindowSettings( fpedit->m_Window );
}