Reset frame position when wxDisplay cannot find the matching display
Fix #6732
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user