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>
This commit is contained in:
Caolán McNamara
2020-11-16 13:41:58 +01:00
parent a72b0ae166
commit dbbb5569b4
+1 -1
View File
@@ -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 )