Remove '~' == empty_string.
It has long outlived its usefulness (which was to preserve token sequence in pre-sexpr files). This will no doubt turn up latent issues....
This commit is contained in:
@@ -290,10 +290,6 @@ std::string PSLIKE_PLOTTER::encodeStringForPlotter( const wxString& aUnicode )
|
||||
{
|
||||
switch (ch)
|
||||
{
|
||||
// The ~ shouldn't reach the outside
|
||||
case '~':
|
||||
break;
|
||||
|
||||
// These characters must be escaped
|
||||
case '(':
|
||||
case ')':
|
||||
@@ -324,7 +320,7 @@ int PSLIKE_PLOTTER::returnPostscriptTextWidth( const wxString& aText, int aXSize
|
||||
for( wchar_t asciiCode : aText)
|
||||
{
|
||||
// Skip the negation marks and untabled points.
|
||||
if( asciiCode != '~' && asciiCode < 256 )
|
||||
if( asciiCode < 256 )
|
||||
tally += width_table[asciiCode];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user