Fix for #7384 - From/To UTF8 conversation issue for text controls in Settings Tabs

+ BitmapComboBox: fixed warning under MSW
This commit is contained in:
YuSanka committed 2021-11-30 12:32:40 +01:00
1 parent 86afffa692
commit 8fc620375c
3 files changed
+12 -7

No files matched your search

+6 -1
View File
@@ -167,7 +167,12 @@ int BitmapComboBox::Append(const wxString& item)
//3. Set this empty bitmap to the at list one item and BitmapCombobox will be recreated correct
wxBitmap bitmap(1, int(1.6 * wxGetApp().em_unit() + 1));
bitmap.SetWidth(0);
{
// bitmap.SetWidth(0); is depricated now
// so, use next code
bitmap.UnShare();// AllocExclusive();
bitmap.GetGDIImageData()->m_width = 0;
}
OnAddBitmap(bitmap);
const int n = wxComboBox::Append(item);