]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/dialog.cpp
fixed memory leak in wxXmlResource introduced when fixing wxVector<> usage (patch...
[wxWidgets.git] / src / palmos / dialog.cpp
index 32535b9bca05bd15525b366072b7309a6e0f8628..c368c78f564da6d59423646e858ff3fa7f373d6e 100644 (file)
@@ -168,6 +168,9 @@ wxWindow *wxDialog::FindSuitableParent() const
 
 bool wxDialog::Show(bool show)
 {
+    if (show && CanDoLayoutAdaptation())
+        DoLayoutAdaptation();
+
     return wxTopLevelWindowPalm::Show (show);
 }
 
@@ -178,6 +181,9 @@ void wxDialog::Raise()
 // show dialog modally
 int wxDialog::ShowModal()
 {
+    if (show && CanDoLayoutAdaptation())
+        DoLayoutAdaptation();
+
     if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) {
         return 0;
     }