From d044e6fed3e8bbffac8484647e9768f85a3799ee Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 12 Jun 2021 20:40:41 +0100 Subject: [PATCH] Don't try and convert legacy empty-string tokens to overbar syntax. --- common/string.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 == '~' )