Removing else warning

This commit is contained in:
Jay McCarthy 2010-05-19 10:31:54 -05:00
parent a2335a763f
commit c29419826c

View File

@ -503,11 +503,13 @@ void wxListBox::SetClientData(int n, char *_client_data)
void wxListBox::SetSelection(int n, Bool select)
{
if (0 <= n && n < num_choices)
if (select)
XfwfMultiListHighlightItem(MULTILIST, n);
else
XfwfMultiListUnhighlightItem(MULTILIST, n);
if (0 <= n && n < num_choices) {
if (select) {
XfwfMultiListHighlightItem(MULTILIST, n);
} else {
XfwfMultiListUnhighlightItem(MULTILIST, n);
}
}
}
void wxListBox::SetOneSelection(int n)