HaikuDepot: MarkupParser: Fixed off-by-one error...

... when finishing a paragraph to include the last character.
This commit is contained in:
Stephan Aßmus 2013-09-07 00:14:29 +02:00
parent 59b52a1163
commit df10644048

View File

@ -118,7 +118,7 @@ MarkupParser::_ParseText(const BString& text)
switch (nextChar) {
case '\n':
case '\0':
_CopySpan(text, start, offset - 1);
_CopySpan(text, start, offset);
_FinishParagraph();
start = offset + 1;
break;