]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/dialog.cpp
Corrected image saving to HTML
[wxWidgets.git] / src / univ / dialog.cpp
index 79114b0d367fd0abd0f43ed9831e8633588d46ef..ad510bd277abc02c0f456bace842cfffeb194d5a 100644 (file)
@@ -71,7 +71,7 @@ bool wxDialog::Create(wxWindow *parent,
 
 void wxDialog::OnApply(wxCommandEvent &WXUNUSED(event))
 {
-    if ( Validate() ) 
+    if ( Validate() )
         TransferDataFromWindow();
 }
 
@@ -150,9 +150,12 @@ bool wxDialog::Show(bool show)
             EndModal(wxID_CANCEL);
     }
 
+    if (show && CanDoLayoutAdaptation())
+        DoLayoutAdaptation();
+
     bool ret = wxDialogBase::Show(show);
 
-    if ( show ) 
+    if ( show )
         InitDialog();
 
     return ret;