2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

fixed entities, version 0.8.53.dev

This commit is contained in:
John Preston
2015-08-28 19:30:32 +03:00
parent 9a51e2c7e3
commit 77b0ca2220
4 changed files with 13 additions and 11 deletions

View File

@@ -554,15 +554,16 @@ public:
start = src.constData();
end = start + src.size();
while (start != end && chIsTrimmed(*start, rich)) {
++start;
ptr = start;
while (ptr != end && chIsTrimmed(*ptr, rich)) {
++ptr;
}
while (start != end && chIsTrimmed(*(end - 1), rich)) {
while (ptr != end && chIsTrimmed(*(end - 1), rich)) {
--end;
}
_t->_text.resize(0);
_t->_text.reserve(end - start);
_t->_text.reserve(end - ptr);
diacs = 0;
sumWidth = 0;
@@ -575,7 +576,7 @@ public:
lastSpace = true;
waitingLink = lnkRanges.cbegin();
linksEnd = lnkRanges.cend();
for (ptr = start; ptr <= end; ++ptr) {
for (; ptr <= end; ++ptr) {
if (!checkWaitedLink()) {
break;
}