don't try to access empty wxIconBundle in gtk_frame_realized_callback
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -332,7 +332,7 @@ gtk_frame_realized_callback( GtkWidget * WXUNUSED(widget),
|
||||
|
||||
// reset the icon
|
||||
wxIconBundle iconsOld = win->GetIcons();
|
||||
if ( iconsOld.GetIcon(-1).Ok() )
|
||||
if ( !iconsOld.IsEmpty() )
|
||||
{
|
||||
win->SetIcon( wxNullIcon );
|
||||
win->SetIcons( iconsOld );
|
||||
|
Reference in New Issue
Block a user