Couple more Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user