X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b8c140b89f5e01564b79c0a779b0b4aba2542351..7948c0c24401c496c04da3c28f1f1f2f282ba327:/src/mac/stattext.cpp?ds=sidebyside diff --git a/src/mac/stattext.cpp b/src/mac/stattext.cpp index ac2dc2e4d0..5509db4ddd 100644 --- a/src/mac/stattext.cpp +++ b/src/mac/stattext.cpp @@ -51,7 +51,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, m_windowId = id; m_windowStyle = style; - m_label = label ; + m_label = wxStripMenuCodes(label) ; bool ret = wxControl::Create( parent, id, pos, size, style , wxDefaultValidator , name ); SetBestSize( size ) ; @@ -76,7 +76,6 @@ void wxStaticText::DrawParagraph(wxDC &dc, wxString paragraph, int &y) int x = 0 ; - int i = 0 ; bool linedrawn = true; while( paragraph.Length() > 0 ) { @@ -157,7 +156,7 @@ void wxStaticText::OnDraw( wxDC &dc ) } wxString paragraph; - int i = 0 ; + size_t i = 0 ; wxString text = m_label; int y = 0 ; while (i < text.Length())