diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:11:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:49:09 +0100 |
commit | d2cf2d813befa4cfb2f709fcb8bc60ba85cf314a (patch) | |
tree | 16c65bfe996fb8f4dbe5eec2268e4872ea5ef8fb /vcl | |
parent | 154cc4ab52f4fd364889b6333338f5dd880352e2 (diff) |
coverity#1242507 silence Arguments in wrong order
Change-Id: Ice857b6f97f1ac3f720226aa90392fb6e9229869
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/print.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index ae62b3953d1d..960c6ca65f26 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -1377,8 +1377,9 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe nLandscapeAngle != 0 && HasSupport( SUPPORT_SET_ORIENTATION )) { - - PaperInfo aRotatedInfo(pSetupData->mnPaperHeight, pSetupData->mnPaperWidth); + const long nRotatedWidth = pSetupData->mnPaperHeight; + const long nRotatedHeight = pSetupData->mnPaperWidth; + PaperInfo aRotatedInfo(nRotatedWidth, nRotatedHeight); for ( int i = 0; i < nPaperCount; i++ ) { |