From 365271b573e3d0ab7512471358f98a589f18c104 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 7 Feb 2007 17:39:43 +0000 Subject: [PATCH 1/1] update the text of a read-only combobox (and hence wxChoice) when selection is changed too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/combobox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index febde2efc1..b615a9b537 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -389,8 +389,8 @@ void wxComboBox::SetSelection(int n) wxCHECK_RET( (n == wxNOT_FOUND || IsValid(n)), _T("invalid index in wxComboBox::Select") ); GetLBox()->SetSelection(n); - if ( GetTextCtrl() ) - GetTextCtrl()->SetValue(GetLBox()->GetString(n)); + + SetText(GetLBox()->GetString(n)); } int wxComboBox::GetSelection() const -- 2.45.2