Reset frame position when wxDisplay cannot find the matching display
Fix #6732
This commit is contained in:
parent
b532c4a2b8
commit
626c671448
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue