]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/choice.cpp
fix crash which happened if you called SetAttr(NULL) followed by SetAttr(attr) (...
[wxWidgets.git] / src / os2 / choice.cpp
index 18650fc4f86de3f991a228a9f9461cc241c51d87..9f0360a9fcbb2a59d24436fd34d300effd6ff461 100644 (file)
@@ -207,7 +207,7 @@ void wxChoice::SetString(unsigned int n, const wxString& rsStr)
     LONG  nIndexType = 0;
     void* pData;
 
-    if ( m_clientDataItemsType != wxClientData_None )
+    if ( HasClientData() )
     {
         pData = DoGetItemClientData(n);
     }