]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/msgdlgg.cpp
move m_sizeSet out of wxWindow
[wxWidgets.git] / src / generic / msgdlgg.cpp
index e17387ba58737dedce377200a176583393eca50f..1565d88e4f81af2c4c7c1909678f924de0c063e3 100644 (file)
@@ -64,6 +64,8 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent,
 {
     SetMessageDialogStyle(style);
 
+    parent = GetParentForModalDialog(parent);
+
     bool is_pda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA);
 
     wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );