Fix crash in wxAuiNotebook::DoGetBestSize

This commit is contained in:
Graham Dawes
2019-01-07 10:38:16 +00:00
parent 9ab3acee18
commit 95b3486dc0

View File

@@ -3574,6 +3574,10 @@ wxSize wxAuiNotebook::DoGetBestSize() const
// Store the current pane with its largest window dimensions
layouts.push_back(wxAuiLayoutObject(bestPageSize, pInfo));
}
if ( layouts.empty() )
return wxSize(0, 0);
wxVectorSort(layouts);
/*