diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index ff85196cd4..246e22f81c 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -1101,7 +1101,7 @@ StyledEditWindow::Print(const char* documentName) currentLine++; } if (pagesInDocument == lastPage) - lastLine = currentLine; + lastLine = currentLine - 1; if (currentHeight >= printableRect.Height()) { pagesInDocument++;