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:
Vadim Zeitlin
2007-04-07 23:05:37 +00:00
parent f718689984
commit 5a5cdd3142

View File

@@ -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 );