summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-16 10:31:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-16 13:41:58 +0100
commitdbbb5569b45ede85af7f2ee53496f28762cbf371 (patch)
tree641f466e507356f20e9f9f324237cdfbd130ebdc
parenta72b0ae16684feb438558686253d9b4701313017 (diff)
tdf#137898 Page count is not reset to 1 in the print preview dialog
Change-Id: Ib7c8695fd3e7156b86f4b4603fbaa5e2319cdc1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105919 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/window/printdlg.cxx2
1 files changed, 1 insertions, 1 deletions
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 )