From a8c26b3b30b3399dcb1f68ab119cb01fd444bc2a Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 27 Jul 2003 07:02:44 +0000 Subject: [PATCH] pixel perfect printing? git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4103 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/stylededit/StyledEditWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index 6b4a1191cc..8b0e020aed 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -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(); }