In SetString, added test for owner draw style to cure crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -646,10 +646,11 @@ void wxListBox::SetString(const int N, const wxString& s)
|
||||
if (sel >= 0)
|
||||
SetSelection(sel);
|
||||
|
||||
#if USE_OWNER_DRAWN
|
||||
// update item's text
|
||||
m_aItems[N]->SetName(s);
|
||||
#endif //USE_OWNER_DRAWN
|
||||
#if USE_OWNER_DRAWN
|
||||
if ( m_windowStyle & wxLB_OWNERDRAW )
|
||||
// update item's text
|
||||
m_aItems[N]->SetName(s);
|
||||
#endif //USE_OWNER_DRAWN
|
||||
}
|
||||
|
||||
int wxListBox::Number (void) const
|
||||
|
Reference in New Issue
Block a user