X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18b40f302243480a3f379af33fa04c3158af92c2..ec935ba8415e2bbb3593fa6db85c11303b985d23:/src/aui/auibook.cpp diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 113fb0c5c4..289faccafa 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -3064,6 +3064,10 @@ bool wxAuiNotebook::InsertPage(size_t page_idx, bool select, const wxBitmap& bitmap) { + wxASSERT_MSG(page, wxT("page pointer must be non-NULL")); + if (!page) + return false; + page->Reparent(this); wxAuiNotebookPage info;