diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index d2296735c9..de2296f3de 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -261,7 +261,10 @@ bool DIALOG_SHIM::Show( bool show ) } } else if( m_initialSize != wxDefaultSize ) + { SetSize( m_initialSize ); + Centre(); + } // Be sure that the dialog appears in a visible area // (the dialog position might have been stored at the time when it was diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index c0e6b4a874..5a2cbc6b07 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -159,8 +159,6 @@ void PAGED_DIALOG::finishInitialization() m_treebook->Fit(); finishDialogSettings(); - - Centre( wxBOTH ); }