In wxBitmapComboBox::RecreateControl(), only call ChangeValue() if the control doesn't have wxCB_READONLY style (fixes #12859)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2011-01-12 17:58:09 +00:00
parent 4254f67216
commit df541b86f8

View File

@ -181,7 +181,8 @@ void wxBitmapComboBox::RecreateControl()
::SendMessage(GetHwnd(), CB_SETITEMHEIGHT, 0, MeasureItem(0));
// Revert the old string value
ChangeValue(value);
if ( !HasFlag(wxCB_READONLY) )
ChangeValue(value);
}
wxBitmapComboBox::~wxBitmapComboBox()