X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f320d7c57daa1cd4bc86cbe1da1ef1619b22edc..b404a8f3b072129c107c6d9a5e0f6f53cd34807b:/src/msw/bmpcbox.cpp diff --git a/src/msw/bmpcbox.cpp b/src/msw/bmpcbox.cpp index 52235a8779..c2928c9657 100644 --- a/src/msw/bmpcbox.cpp +++ b/src/msw/bmpcbox.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/msw/bmpcboxg.cpp +// Name: src/msw/bmpcbox.cpp // Purpose: wxBitmapComboBox // Author: Jaakko Salli // Created: 2008-04-06 @@ -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()