Set wxProgressDialog::m_parent too

This, in addition to the previous commit, allows Centre() to work
correctly as it needs to retrieve the parent window rectangle.

See #17768.
This commit is contained in:
Vadim Zeitlin
2017-10-29 19:49:40 +01:00
parent a8eccd21c7
commit dc5802746d
2 changed files with 3 additions and 2 deletions

View File

@@ -133,6 +133,7 @@ wxGenericProgressDialog::wxGenericProgressDialog(const wxString& title,
void wxGenericProgressDialog::SetTopParent(wxWindow* parent)
{
m_parent = parent;
m_parentTop = GetParentForModalDialog(parent, GetWindowStyle());
}