mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-28 16:11:54 -05:00
Fix for #7384 - From/To UTF8 conversation issue for text controls in Settings Tabs
+ BitmapComboBox: fixed warning under MSW
This commit is contained in:
1 parent
86afffa692
commit
8fc620375c
3 files changed
+12
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user