[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 16 12:42:40 UTC 2020


 vcl/source/window/printdlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dbbb5569b45ede85af7f2ee53496f28762cbf371
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 16 10:31:14 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 16 13:41:58 2020 +0100

    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 at redhat.com>

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 )


More information about the Libreoffice-commits mailing list