From 81dcc267ef689b6456c1b862213350f46f322c56 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Thu, 25 Nov 2021 20:40:41 +0300 Subject: [PATCH] [SSE] Print preview: fix page navigation --- apps/spreadsheeteditor/main/app/controller/Print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index b83a6e185..0ba2720e7 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -677,7 +677,7 @@ define([ if (this._currentPrintType !== printType) { newPage = 0; this._currentPrintType = printType; - } else if (this._navigationPreview.pageCount > pageCount) { + } else if (this._navigationPreview.currentPage > pageCount - 1) { newPage = pageCount - 1; } else { newPage = this._navigationPreview.currentPage;