X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4438caf41af49f00f3c8137ac801871f59cce386..e8ac7bf221aec78b2a420660db711eed2e771670:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 31c7c0141b..084a748c6c 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -102,14 +102,14 @@ wxSize wxStaticText::DoGetBestSize() heightTextTotal = 0, heightLine; wxString curLine; - for ( const char *pc = text; ; pc++ ) { - if ( *pc == '\n' || *pc == '\0' ) { + for ( const wxChar *pc = text; ; pc++ ) { + if ( *pc == _T('\n') || *pc == _T('\0') ) { GetTextExtent(curLine, &widthLine, &heightLine); if ( widthLine > widthTextMax ) widthTextMax = widthLine; heightTextTotal += heightLine; - if ( *pc == '\n' ) { + if ( *pc == _T('\n') ) { curLine.Empty(); } else {