(svn r25525) -Fix: off-by-one in fallback layout w.r.t. colour/font changes

This commit is contained in:
rubidium 2013-06-30 07:29:31 +00:00
parent ea5d35a896
commit 4fed658a63
1 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ ParagraphLayout::Line *ParagraphLayout::nextLine(int max_width)
}
const FontCache *fc = iter->second->fc;
const WChar *next_run = this->buffer_begin + iter->first + 1;
const WChar *next_run = this->buffer_begin + iter->first;
for (;;) {
WChar c = *this->buffer++;
@ -322,7 +322,7 @@ ParagraphLayout::Line *ParagraphLayout::nextLine(int max_width)
iter++;
assert(iter != this->runs.End());
next_run = this->buffer_begin + iter->first + 1;
next_run = this->buffer_begin + iter->first;
begin = this->buffer;
last_char = begin;