]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
missing comma for Motif compilation added
[wxWidgets.git] / src / gtk1 / dialog.cpp
index 92622c8f68c36411857ab565e7eb18c7e72d5dfa..a6616c919c496678ce923d704c210907b9f362f3 100644 (file)
@@ -575,6 +575,8 @@ void wxDialog::SetIcon( const wxIcon &icon )
     m_icon = icon;
     if (!icon.Ok()) return;
 
+    if (!m_widget->window) return;
+
     wxMask *mask = icon.GetMask();
     GdkBitmap *bm = (GdkBitmap *) NULL;
     if (mask) bm = mask->GetBitmap();