Version 0.10.7: fixed entities moving when replacing emoji.

This commit is contained in:
John Preston 2016-09-20 17:02:50 +03:00
parent 75c12dda31
commit c4a4e99f6b
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ inline void appendPartToResult(QString &result, const QChar *start, const QChar
if (entity.offset() >= from - start) {
entity.extendToLeft(from - start - result.size());
}
if (entity.offset() + entity.length() < to - start) {
if (entity.offset() + entity.length() <= to - start) {
entity.shrinkFromRight(from - start - result.size());
}
}