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:
@@ -181,7 +181,8 @@ void wxBitmapComboBox::RecreateControl()
|
|||||||
::SendMessage(GetHwnd(), CB_SETITEMHEIGHT, 0, MeasureItem(0));
|
::SendMessage(GetHwnd(), CB_SETITEMHEIGHT, 0, MeasureItem(0));
|
||||||
|
|
||||||
// Revert the old string value
|
// Revert the old string value
|
||||||
ChangeValue(value);
|
if ( !HasFlag(wxCB_READONLY) )
|
||||||
|
ChangeValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBitmapComboBox::~wxBitmapComboBox()
|
wxBitmapComboBox::~wxBitmapComboBox()
|
||||||
|
Reference in New Issue
Block a user