summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-12-10 23:24:29 +0100
committerLászló Németh <nemeth@numbertext.org>2019-12-12 14:45:57 +0100
commit562c30d5ad142fcdc77be6125fdac6d48b782fd7 (patch)
treeb7f20b006875a1609a0987756927654ec359d3b4 /vcl/source
parent31fffe5538fd8011afa0076fdca39379c28fcff5 (diff)
tdf#123076 Get paper size for print preview
Initialize from current paper size which can be different from A4 Change-Id: Iae5e33d79c0783a32dad8635a66cc3fbe83dc568 Reviewed-on: https://gerrit.libreoffice.org/84920 Tested-by: Jenkins Tested-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/printdlg.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index c50fb512dd92..b42a1ce41213 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -890,6 +890,8 @@ void PrintDialog::preparePreview( bool i_bMayUseCache )
{
VclPtr<Printer> aPrt( maPController->getPrinter() );
Size aCurPageSize = aPrt->PixelToLogic( aPrt->GetPaperSizePixel(), MapMode( MapUnit::Map100thMM ) );
+ // tdf#123076 Get paper size for the preview top label
+ mePaper = aPrt->GetPaper();
GDIMetaFile aMtf;
// page range may have changed depending on options