fixed broken endlines in case there were TAB charachters (bug 865). A better solution is also coming.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18959 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-09-28 12:00:14 +00:00
parent c5bbbb21da
commit f70a414b8b
1 changed files with 2 additions and 2 deletions

View File

@ -3661,11 +3661,11 @@ BTextView::DrawLines(int32 startLine, int32 endLine, int32 startOffset, bool era
view->PopState();
}
const char *string = fText->GetString(offset, numBytes);
const char *string = fText->GetString(offset, tabChars);
// TODO: GetString() could return less or more bytes than requested
// Improve the backend api so it's more robust and pass back the returned
// bytes
view->DrawString(string, numBytes);
view->DrawString(string, tabChars);
if (foundTab) {
float penPos = PenLocation().x - fTextRect.left;