X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f740587c9d406b5c7087853b85dbbb353362cb9a..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/msw/hyperlink.cpp diff --git a/src/msw/hyperlink.cpp b/src/msw/hyperlink.cpp index de729770fd..cb8951c936 100644 --- a/src/msw/hyperlink.cpp +++ b/src/msw/hyperlink.cpp @@ -25,7 +25,6 @@ #ifndef WX_PRECOMP #include "wx/app.h" - #include "wx/stattext.h" #include "wx/msw/wrapcctl.h" // include "properly" #include "wx/msw/private.h" #include "wx/msw/missing.h" @@ -63,8 +62,11 @@ namespace wxString GetLabelForSysLink(const wxString& text, const wxString& url) { - return wxString("" - + wxStaticText::RemoveMarkup(text) + ""; + // Any "&"s in the text should appear on the screen and not be (mis) + // interpreted as mnemonics. + return wxString::Format("%s", + url, + wxControl::EscapeMnemonics(text)); } }