Browse Source

Add missing format specifier to UnescapeString.

Fixes https://gitlab.com/kicad/code/kicad/issues/9542
7.0
Jeff Young 3 years ago
parent
commit
d95847ae79
  1. 3
      common/string_utils.cpp

3
common/string_utils.cpp

@ -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 )

Loading…
Cancel
Save