From 95b3486dc03c18a6b700499defa7a3c8f5bfd8eb Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Mon, 7 Jan 2019 10:38:16 +0000 Subject: [PATCH] Fix crash in wxAuiNotebook::DoGetBestSize --- src/aui/auibook.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 9c516a4690..ef362a056b 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -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); /*