pixel perfect printing?

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4103 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2003-07-27 07:02:44 +00:00
parent 7ec5852757
commit a8c26b3b30
1 changed files with 2 additions and 2 deletions

View File

@ -1130,8 +1130,8 @@ StyledEditWindow::Print(const char *documentname)
if (firstLineOnPage != 0) {
top = fTextView->TextHeight(0,firstLineOnPage-1);
}
float bottom = fTextView->TextHeight(0,printLine);
BRect textRect(0.0,top,printable_rect.Width(),bottom);
float bottom = fTextView->TextHeight(0,printLine-1);
BRect textRect(0.0,top+TEXT_INSET,printable_rect.Width(),bottom+TEXT_INSET);
printJob.DrawView(fTextView,textRect,BPoint(0.0,0.0));
printJob.SpoolPage();
}