From df10644048333c79bc36f1c29ffb7e56fa2169ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 7 Sep 2013 00:14:29 +0200 Subject: [PATCH] HaikuDepot: MarkupParser: Fixed off-by-one error... ... when finishing a paragraph to include the last character. --- src/apps/haiku-depot/textview/MarkupParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/haiku-depot/textview/MarkupParser.cpp b/src/apps/haiku-depot/textview/MarkupParser.cpp index fbbd333d07..301f674aa9 100644 --- a/src/apps/haiku-depot/textview/MarkupParser.cpp +++ b/src/apps/haiku-depot/textview/MarkupParser.cpp @@ -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;