diff --git a/docs/changes.txt b/docs/changes.txt index ff0c93d733..62d85bec8a 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -62,6 +62,10 @@ wxX11: - Don't crash in wxWindow dtor if the window hadn't been really Create()d +wxUniv: + +- Fixed wxComboBox always sorted + 2.8.1 ----- diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index 89130b4e3c..febde2efc1 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -122,8 +122,8 @@ bool wxComboListBox::Create(wxWindow* parent) if ( !wxListBox::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, - wxBORDER_SIMPLE | wxLB_INT_HEIGHT | - m_combo->GetWindowStyle() & wxCB_SORT ? wxLB_SORT : 0) ) + wxBORDER_SIMPLE | + ( m_combo->GetWindowStyle() & wxCB_SORT ? wxLB_SORT : 0 ) ) ) return false; // we don't react to the mouse events outside the window at all