]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed typo in IsBeingDeleted() test in GetParentForModalDialog()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2007 12:35:36 +0000 (12:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2007 12:35:36 +0000 (12:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dlgcmn.cpp

index 8430081563dd78102287bc3ce7bb9f90f03f240f..0991a598ae976e16ba6d10e5e6d6e582b59e6aa4 100644 (file)
@@ -80,7 +80,7 @@ static bool CanBeUsedAsParent(wxWindow *parent)
     return !parent->HasExtraStyle(wxWS_EX_TRANSIENT) &&
                 parent->IsShownOnScreen() &&
                     !wxPendingDelete.Member(parent) &&
     return !parent->HasExtraStyle(wxWS_EX_TRANSIENT) &&
                 parent->IsShownOnScreen() &&
                     !wxPendingDelete.Member(parent) &&
-                        parent->IsBeingDeleted();
+                        !parent->IsBeingDeleted();
 }
 
 wxWindow *wxDialogBase::GetParentForModalDialog(wxWindow *parent) const
 }
 
 wxWindow *wxDialogBase::GetParentForModalDialog(wxWindow *parent) const