Don't try and convert legacy empty-string tokens to overbar syntax.
This commit is contained in:
parent
bcdec0dea7
commit
d044e6fed3
|
@ -46,6 +46,10 @@ wxString ConvertToNewOverbarNotation( const wxString& aOldStr )
|
||||||
wxString newStr;
|
wxString newStr;
|
||||||
bool inOverbar = false;
|
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 )
|
for( wxString::const_iterator chIt = aOldStr.begin(); chIt != aOldStr.end(); ++chIt )
|
||||||
{
|
{
|
||||||
if( *chIt == '~' )
|
if( *chIt == '~' )
|
||||||
|
|
Loading…
Reference in New Issue