]> git.saurik.com Git - wxWidgets.git/commitdiff
don't try to access empty wxIconBundle in gtk_frame_realized_callback
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Apr 2007 23:05:37 +0000 (23:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Apr 2007 23:05:37 +0000 (23:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index b97cae23634caf99a203986422fed8ab87c89557..b53b2b681ad951197255d88662ffce5418a6cc47 100644 (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 );