X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b87170050ae22c8a6351aca9b4bb56f4261f351..8e190f0ed9c242e6df5fd4dd99fdaf6c9dea1cda:/src/common/stattextcmn.cpp diff --git a/src/common/stattextcmn.cpp b/src/common/stattextcmn.cpp index b40340b5c7..b4b6acee00 100644 --- a/src/common/stattextcmn.cpp +++ b/src/common/stattextcmn.cpp @@ -154,6 +154,14 @@ wxString wxStaticTextBase::GetLabelText() const return RemoveMnemonics(ret); } +/*static*/ +wxString wxStaticTextBase::GetLabelText(const wxString& label) +{ + // remove markup + wxString ret = RemoveMarkup(label); + return RemoveMnemonics(ret); +} + /*static*/ wxString wxStaticTextBase::RemoveMarkup(const wxString& text) {