fixed incorrectly inversed test for parent [not] being deleted (patch 1624472)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-12-29 20:16:53 +00:00
parent 61f84e2493
commit 02d5015b1c
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ int wxDialog::ShowModal()
wxWindow *parent = wxTheApp->GetTopWindow();
if ( parent &&
parent != this &&
parent->IsBeingDeleted() &&
!parent->IsBeingDeleted() &&
!(parent->GetExtraStyle() & wxWS_EX_TRANSIENT) )
{
m_parent = parent;

View File

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