vcl/source/window/printdlg.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit edab3a9fd243c238f840db84af31c39c3617eb8c
Author: Caolán McNamara <[email protected]>
AuthorDate: Sat Feb 10 16:48:43 2024 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Sat Feb 10 20:19:46 2024 +0100
cid#1591787 silence Arguments in wrong order
Change-Id: Iee6dba0a127a126bc47dcb5c98efa86274d79340
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163216
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 66cadb91d18a..5b80ca57fa69 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1033,6 +1033,7 @@ void PrintDialog::updatePageSize(int nOrientation)
if ((nOrientation == ORIENTATION_PORTRAIT && aSize.Width() >
aSize.Height())
|| (nOrientation == ORIENTATION_LANDSCAPE && aSize.Width() <
aSize.Height()))
{
+ // coverity[swapped_arguments : FALSE] - this is in the intended
order
aSize = Size(aSize.Height(), aSize.Width());
}
}