From dbbb5569b45ede85af7f2ee53496f28762cbf371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 16 Nov 2020 10:31:14 +0000 Subject: [PATCH] tdf#137898 Page count is not reset to 1 in the print preview dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib7c8695fd3e7156b86f4b4603fbaa5e2319cdc1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105919 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/window/printdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index e137a2f31eb2..d9a7504bae76 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -925,7 +925,7 @@ void PrintDialog::preparePreview( bool i_bMayUseCache ) mnCurPage = nPages-1; if( mnCurPage < 0 ) mnCurPage = 0; - + mxPageEdit->set_text(OUString::number(mnCurPage + 1)); const MapMode aMapMode( MapUnit::Map100thMM ); if( nPages > 0 )