// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: choice.cpp 54129 2008-06-11 19:30:52Z SC $
+// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
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);
}