osx: Fix assertion failure when expanding hotkey categories

Originally committed to SVN as r6899.
This commit is contained in:
Thomas Goyne 2012-06-12 03:13:58 +00:00
parent 2db20778fc
commit 998fc633b9

View file

@ -96,8 +96,10 @@ public:
if (col == 0)
variant = combo.Str();
else if (col == 1) {
wxBitmap icon_bmp(icon::get(combo.CmdName(), 16));
wxIcon icon;
icon.CopyFromBitmap(icon::get(combo.CmdName(), 16));
if (icon_bmp.IsOk())
icon.CopyFromBitmap(icon_bmp);
variant << wxDataViewIconText(combo.CmdName(), icon);
}
else if (col == 2) {