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(); }