diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 16:57:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 09:07:53 +0100 |
commit | 73fe3fb9f8dd2f8e70fd34cf340778b5017a54bb (patch) | |
tree | c3c7487a625457420f0802e30a65cf8f4ccd1473 | |
parent | f3259873e18f9ead3de00739735620bd941b04a4 (diff) |
coverity#1242530 silence Arguments in wrong order
Change-Id: I809e771e4f052ad64300b09174a1bdbc769e15d3
-rw-r--r-- | vcl/generic/print/genprnpsp.cxx | 4 |
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 |