X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3857173d3c186214cbc73ce764d122d5cf7b98d6..1bda83992364d46ff77228a849808eb546fbfaa5:/src/os2/dialog.cpp

diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp
index 12d98447d1..abb905f2f8 100644
--- a/src/os2/dialog.cpp
+++ b/src/os2/dialog.cpp
@@ -212,6 +212,9 @@ bool wxDialog::Show( bool bShow )
 
     if (bShow)
     {
+        if (CanDoLayoutAdaptation())
+            DoLayoutAdaptation();
+
         // this usually will result in TransferDataToWindow() being called
         // which will change the controls values so do it before showing as
         // otherwise we could have some flicker
@@ -222,7 +225,7 @@ bool wxDialog::Show( bool bShow )
 
     wxString title = GetTitle();
     if (!title.empty())
-        ::WinSetWindowText((HWND)GetHwnd(), (PSZ)title.c_str());
+        ::WinSetWindowText((HWND)GetHwnd(), title.c_str());
 
     if ( bShow )
     {