]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/auibook.cpp
build fixes for 64-bit
[wxWidgets.git] / src / aui / auibook.cpp
index 113fb0c5c4119a9bec64307e7961cb148bdcab48..289faccafaa20ade519b7f6b1ae9a6688ce8dbc4 100644 (file)
@@ -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;