Add missing format specifier to UnescapeString.

Fixes https://gitlab.com/kicad/code/kicad/issues/9542
This commit is contained in:
Jeff Young 2022-09-12 01:47:57 +01:00
parent 57f9d6cb3d
commit d95847ae79
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ wxString UnescapeString( const wxString& aSource )
for( size_t i = 0; i < sourceLen; ++i )
{
wxUniChar ch = aSource[i];
if( ( ch == '$' || ch == '^' || ch == '_' )
if( ( ch == '$' || ch == '~' || ch == '^' || ch == '_' )
&& i + 1 < sourceLen && aSource[i+1] == '{' )
{
for( ; i < sourceLen; ++i )