]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/choice_osx.cpp
under cocoa a too-small static box leads to erroneous layout information, therefore...
[wxWidgets.git] / src / osx / choice_osx.cpp
index e3d6cdab4827dd8ed3c7db863936d96e72fcb244..28af5cdf2c0dcb8e3b8c40a3693ee1745ac5b632 100644 (file)
@@ -219,15 +219,11 @@ wxString wxChoice::GetString(unsigned int n) const
 // ----------------------------------------------------------------------------
 void wxChoice::DoSetItemClientData(unsigned int n, void* clientData)
 {
-    wxCHECK_RET( IsValid(n), wxT("wxChoice::DoSetItemClientData: invalid index") );
-
     m_datas[n] = (char*)clientData ;
 }
 
 void * wxChoice::DoGetItemClientData(unsigned int n) const
 {
-    wxCHECK_MSG( IsValid(n), NULL, wxT("wxChoice::DoGetClientData: invalid index") );
-
     return (void *)m_datas[n];
 }