]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
GetLabelTop should return the stripped label, for compatibility.
[wxWidgets.git] / src / gtk1 / dialog.cpp
index eab01d62fd5b1aed502dba6f4b62e90dd3219b20..5a1129b0e2215de42fbcaf0d8632c8e00b7ac6a7 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
+    #include "wx/frame.h"
+    #include "wx/cursor.h"
 #endif // WX_PRECOMP
 
-#include "wx/frame.h"
-#include "wx/cursor.h"
 #include "wx/evtloop.h"
 
 #include <gdk/gdk.h>
@@ -194,7 +194,7 @@ int wxDialog::ShowModal()
         wxWindow *parent = wxTheApp->GetTopWindow();
         if ( parent &&
                 parent != this &&
-                    parent->IsBeingDeleted() &&
+                    !parent->IsBeingDeleted() &&
                         !(parent->GetExtraStyle() & wxWS_EX_TRANSIENT) )
         {
             m_parent = parent;