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:
parent
c5bbbb21da
commit
f70a414b8b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue