]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
Avoid core dumps when SetImageList is used.
[wxWidgets.git] / src / msw / stattext.cpp
index d281fe97b64daeebfff9f1ce37823170d99f1237..f11e04cb191d75893ed105544c4236df22d9b460 100644 (file)
@@ -192,7 +192,9 @@ wxSize wxStaticText::DoGetBestSize() const
             curLine += *pc;
         }
     }
-
+#ifdef __WXWINCE__
+    if(widthTextMax) widthTextMax += 2;
+#endif
     return wxSize(widthTextMax, heightTextTotal);
 }