git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30472
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
case '\\':
// backslash can be used to suppress special meaning of % and $
case '\\':
// backslash can be used to suppress special meaning of % and $
- if ( n != str.Len() && (str[n + 1] == wxT('%') || str[n + 1] == wxT('$')) ) {
+ if ( n != str.Len() - 1 &&
+ (str[n + 1] == wxT('%') || str[n + 1] == wxT('$')) ) {
strResult += str[++n];
break;
strResult += str[++n];
break;