summaryrefslogtreecommitdiff
path: root/vcl/generic/print
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/generic/print')
-rw-r--r--vcl/generic/print/genprnpsp.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx
index d0dfb28b1e19..3b11ec6e66b2 100644
--- a/vcl/generic/print/genprnpsp.cxx
+++ b/vcl/generic/print/genprnpsp.cxx
@@ -989,7 +989,9 @@ struct PDFNewJobParameters
bool operator==(const PDFNewJobParameters& rComp ) const
{
- Size aCompLSSize( rComp.maPageSize.Height(), rComp.maPageSize.Width() );
+ const long nRotatedWidth = rComp.maPageSize.Height();
+ const long nRotatedHeight = rComp.maPageSize.Width();
+ Size aCompLSSize(nRotatedWidth, nRotatedHeight);
return
(maPageSize == rComp.maPageSize || maPageSize == aCompLSSize)
&& mnPaperBin == rComp.mnPaperBin