diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -324,6 +324,9 @@ ParagraphLayout::Line *ParagraphLayout:: next_run = this->buffer_begin + iter->first + 1; begin = this->buffer; + + last_char = begin; + last_space = NULL; } if (IsWhitespace(c)) last_space = this->buffer;