Fixed build under OSX

This commit is contained in:
YuSanka 2020-02-02 19:40:00 +01:00
parent be92e10985
commit 438f4fd1aa

View File

@ -66,7 +66,7 @@ void enable_menu_item(wxUpdateUIEvent& evt, std::function<bool()> const cb_condi
const auto it = msw_menuitem_bitmaps.find(item->GetId()); const auto it = msw_menuitem_bitmaps.find(item->GetId());
if (it != msw_menuitem_bitmaps.end()) if (it != msw_menuitem_bitmaps.end())
{ {
const wxBitmap& item_icon = create_scaled_bitmap(win, it->second, 16, !enable); const wxBitmap& item_icon = create_scaled_bitmap(it->second, win, 16, !enable);
if (item_icon.IsOk()) if (item_icon.IsOk())
item->SetBitmap(item_icon); item->SetBitmap(item_icon);
} }