Cured SetString/GetSelection interaction; incorporated Chris's changes to wxDC:Blit
for printer DCs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -606,7 +606,9 @@ wxListBox::InsertItems(int nItems, const wxString items[], int pos)
|
||||
|
||||
void wxListBox::SetString(int N, const wxString& s)
|
||||
{
|
||||
int sel = GetSelection();
|
||||
int sel = -1;
|
||||
if (!(m_windowStyle & wxLB_MULTIPLE) && !(m_windowStyle & wxLB_EXTENDED))
|
||||
sel = GetSelection();
|
||||
|
||||
char *oldData = (char *)wxListBox::GetClientData(N);
|
||||
|
||||
|
Reference in New Issue
Block a user