disable the first top level parent, not the topmost top level parent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-06-10 13:27:58 +00:00
parent ffda4dacbd
commit 6258e418a0

View File

@ -115,11 +115,7 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
m_maximum /= m_factor;
#endif // __WXMSW__
m_parentTop = parent;
while ( m_parentTop && m_parentTop->GetParent() )
{
m_parentTop = m_parentTop->GetParent();
}
m_parentTop = wxGetTopLevelParent(parent);
wxLayoutConstraints *c;