Reset frame position when wxDisplay cannot find the matching display

Fix #6732
This commit is contained in:
Marek Roszko 2020-12-14 08:28:04 -05:00
parent b532c4a2b8
commit 626c671448
1 changed files with 3 additions and 0 deletions

View File

@ -289,7 +289,10 @@ void EDA_BASE_FRAME::LoadSettings( wxConfigBase* aCfg )
int displayIndex = wxDisplay::GetFromPoint( m_FramePos );
if( displayIndex == wxNOT_FOUND )
{
displayIndex = 0;
m_FramePos = wxDefaultPosition;
}
wxDisplay display( displayIndex );
wxRect clientSize = display.GetClientArea();