From c29419826c478d00fb4bbc9da8a52a4f9999c5a3 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Wed, 19 May 2010 10:31:54 -0500 Subject: [PATCH] Removing else warning --- src/wxxt/src/Windows/ListBox.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wxxt/src/Windows/ListBox.cc b/src/wxxt/src/Windows/ListBox.cc index 8fe4f16da9..591f0befde 100644 --- a/src/wxxt/src/Windows/ListBox.cc +++ b/src/wxxt/src/Windows/ListBox.cc @@ -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)