From 3729b293f02b66139f3d4b52928fd655232b8de7 Mon Sep 17 00:00:00 2001 From: "G.K.MacGregor" Date: Sun, 13 Aug 2023 14:38:56 +0100 Subject: [PATCH] Fix pasting 0x7f on unmapped plain text character --- levelonecommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/levelonecommands.cpp b/levelonecommands.cpp index 1e09b76..a5c8eaa 100644 --- a/levelonecommands.cpp +++ b/levelonecommands.cpp @@ -561,7 +561,7 @@ PasteCommand::PasteCommand(TeletextDocument *teletextDocument, int pageCharSet, // Either a Latin character or non-Latin character that can't be converted // See if it's a Latin character 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 convertedChar = 0x7f; }