]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
Added missing files to filelist.txt and regenerated makefiles.
[wxWidgets.git] / src / msw / stattext.cpp
index 31c7c0141b653a463ab145b0437edecc8effc42c..084a748c6cb011e7a1054f69d082783cadfc6707 100644 (file)
@@ -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 {