Don't try and convert legacy empty-string tokens to overbar syntax.

This commit is contained in:
Jeff Young 2021-06-12 20:40:41 +01:00
parent bcdec0dea7
commit d044e6fed3
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ wxString ConvertToNewOverbarNotation( const wxString& aOldStr )
wxString newStr;
bool inOverbar = false;
// Don't get tripped up by the legacy empty-string token.
if( aOldStr == "~" )
return aOldStr;
for( wxString::const_iterator chIt = aOldStr.begin(); chIt != aOldStr.end(); ++chIt )
{
if( *chIt == '~' )