Add missing format specifier to UnescapeString.
Fixes https://gitlab.com/kicad/code/kicad/issues/9542
This commit is contained in:
parent
57f9d6cb3d
commit
d95847ae79
|
@ -272,7 +272,8 @@ wxString UnescapeString( const wxString& aSource )
|
||||||
for( size_t i = 0; i < sourceLen; ++i )
|
for( size_t i = 0; i < sourceLen; ++i )
|
||||||
{
|
{
|
||||||
wxUniChar ch = aSource[i];
|
wxUniChar ch = aSource[i];
|
||||||
if( ( ch == '$' || ch == '^' || ch == '_' )
|
|
||||||
|
if( ( ch == '$' || ch == '~' || ch == '^' || ch == '_' )
|
||||||
&& i + 1 < sourceLen && aSource[i+1] == '{' )
|
&& i + 1 < sourceLen && aSource[i+1] == '{' )
|
||||||
{
|
{
|
||||||
for( ; i < sourceLen; ++i )
|
for( ; i < sourceLen; ++i )
|
||||||
|
|
Loading…
Reference in New Issue