X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90497db95b7e8ddbc6e0d1b66ce9d76283bd5ebf..32ee98eb765b9b574b8bc0da4396c1203f499d76:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index a2862c2179..1309628465 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());