2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Fix crash in text post processing.

Fixes #4948.
This commit is contained in:
John Preston
2018-07-10 11:12:58 +03:00
parent b697824540
commit e1fd43b2a4

View File

@@ -1987,7 +1987,6 @@ void InputField::processFormatting(int insertPosition, int insertEnd) {
if (ch + 1 < textEnd && ch->isHighSurrogate() && (ch + 1)->isLowSurrogate()) {
++ch;
++fragmentPosition;
}
}
if (action.type != ActionType::Invalid) {