git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45259
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
for (i = 0; i < count; ++i)
{
const wxAuiNotebookPage& page = pages.Item(i);
for (i = 0; i < count; ++i)
{
const wxAuiNotebookPage& page = pages.Item(i);
- menuPopup.AppendCheckItem(1000+i, page.caption);
+ wxString caption = page.caption;
+
+ // if there is no caption, make it a space. This will prevent
+ // an assert in the menu code.
+ if (caption.IsEmpty())
+ caption = wxT(" ");
+
+ menuPopup.AppendCheckItem(1000+i, caption);