Fix pasting 0x7f on unmapped plain text character

This commit is contained in:
G.K.MacGregor
2023-08-13 14:38:56 +01:00
parent b71c178840
commit 3729b293f0

View File

@@ -561,7 +561,7 @@ PasteCommand::PasteCommand(TeletextDocument *teletextDocument, int pageCharSet,
// Either a Latin character or non-Latin character that can't be converted // Either a Latin character or non-Latin character that can't be converted
// See if it's a Latin character // See if it's a Latin character
convertedChar = charToConvert.toLatin1(); convertedChar = charToConvert.toLatin1();
if (convertedChar == 0) if (convertedChar <= 0)
// Couldn't convert - make it a block character so it doesn't need to be inserted-between later on // Couldn't convert - make it a block character so it doesn't need to be inserted-between later on
convertedChar = 0x7f; convertedChar = 0x7f;
} }