summaryrefslogtreecommitdiff
path: root/vcl/source/window/printdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-07 09:29:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-07 16:51:26 +0200
commita5b775c638c5631acb16363e37ee9c49d8835d0b (patch)
tree799d246efb8cd6e4c616d48e68cdef4de303fcf6 /vcl/source/window/printdlg.cxx
parented200d9f2586b714718aaa7319ea68cf480261ad (diff)
cid#1454629 silence bogus Arguments in wrong order
Change-Id: I7dc06a2754eaa172f112f38a260240f8e2cc0983 Reviewed-on: https://gerrit.libreoffice.org/80345 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window/printdlg.cxx')
-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 c9ad27e2e7c1..76924240f575 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -628,11 +628,13 @@ PrintDialog::PrintDialog(weld::Window* i_pWindow, const std::shared_ptr<PrinterC
if( maPController->getPrinter()->GetOrientation() == Orientation::Landscape )
{
maNupLandscapeSize = aNupSize;
+ // coverity[swapped_arguments : FALSE] - this is in the correct order
maNupPortraitSize = Size( aNupSize.Height(), aNupSize.Width() );
}
else
{
maNupPortraitSize = aNupSize;
+ // coverity[swapped_arguments : FALSE] - this is in the correct order
maNupLandscapeSize = Size( aNupSize.Height(), aNupSize.Width() );
}