Commit f1eb70e3 authored by Luis Javier Merino's avatar Luis Javier Merino
Browse files

Fix PlainTextDecoder regression

Commit b11f6533 introduced a regression on getting combining characters
on an extended character. Fix it.
parent 1fa81f4e
Pipeline #116171 passed with stage
in 1 minute and 53 seconds
......@@ -114,7 +114,9 @@ void PlainTextDecoder::decodeLine(const Character *const characters, int count,
ushort extendedCharLength = 0;
const uint *chars = ExtendedCharTable::instance.lookupExtendedChar(characters[i].character, extendedCharLength);
if (chars != nullptr) {
characterBuffer.insert(characterBuffer.end(), extendedCharLength, *chars);
for (uint nchar = 0; nchar < extendedCharLength; nchar++) {
i += qMax(1, Character::stringWidth(chars, extendedCharLength));
} else {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment