X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..aa78d22e2008726218d47da1f2ac5864c11b8ebb:/src/os2/stattext.cpp diff --git a/src/os2/stattext.cpp b/src/os2/stattext.cpp index 66e4072997..a344877e2b 100644 --- a/src/os2/stattext.cpp +++ b/src/os2/stattext.cpp @@ -56,7 +56,10 @@ bool wxStaticText::Create( long lSstyle = 0L; - lSstyle = WS_VISIBLE | SS_TEXT | DT_VCENTER | DT_MNEMONIC; + // Used to have DT_VCENTER but that doesn't work correctly with + // multiline strings and DT_WORDBREAK. Accept a reasonable + // compromise for now + lSstyle = WS_VISIBLE | SS_TEXT | DT_WORDBREAK | DT_MNEMONIC; if (m_windowStyle & wxALIGN_CENTRE) lSstyle |= DT_CENTER; else if (m_windowStyle & wxALIGN_RIGHT)