diff --git a/common/string.cpp b/common/string.cpp index 99b8f30d08..73358ac2af 100644 --- a/common/string.cpp +++ b/common/string.cpp @@ -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 == '~' )