X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fab97536810dea903b79322144f9b110368876a6..c8ecb454c6f8cb8eea729bf553733136637b2dde:/src/msw/stattext.cpp?ds=sidebyside diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index a2862c2179..a6e5b78744 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -214,13 +214,13 @@ void wxStaticText::SetLabel(const wxString& label) } #endif // SS_ENDELLIPSIS - // this call will save the label in m_labelOrig and set it into this window - // (through wxWindow::SetLabel) + // save the label in m_labelOrig with both the markup (if any) and + // the mnemonics characters (if any) m_labelOrig = label; #ifdef SS_ENDELLIPSIS if ( styleReal & SS_ENDELLIPSIS ) - DoSetLabel(RemoveMarkup(label)); + DoSetLabel(GetLabelWithoutMarkup()); else #endif // SS_ENDELLIPSIS DoSetLabel(GetEllipsizedLabelWithoutMarkup());