Fixed broken endlines. This breaks a bit more 'password mode', but it wasn't 100% working yet anyway

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18874 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-09-17 13:34:15 +00:00
parent dad360027a
commit d67b1efc99
+4 -1
View File
@@ -3681,7 +3681,10 @@ BTextView::DrawLines(int32 startLine, int32 endLine, int32 startOffset, bool era
}
const char *string = fText->GetString(offset, numBytes);
view->DrawString(string);
// 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);
if (foundTab) {
float penPos = PenLocation().x - fTextRect.left;