git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66391
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_strings.Insert( items[i], idx );
}
m_strings.Insert( items[i], idx );
}
- m_popUpMenu->Insert( idx, i+1, items[i] );
+ wxString text = items[i];
+ if (text == wxEmptyString)
+ text = " "; // menu items can't have empty labels
+ m_popUpMenu->Insert( idx, i+1, text );
m_datas.Insert( NULL, idx );
AssignNewItemClientData(idx, clientData, i, type);
}
m_datas.Insert( NULL, idx );
AssignNewItemClientData(idx, clientData, i, type);
}