[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 16 07:33:54 UTC 2019


 vcl/source/window/printdlg.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d6a6a24551eb043058a4d31e240c28b851954349
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 15 21:48:07 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 16 09:33:13 2019 +0200

    cid#1448365 silence Arguments in wrong order
    
    Change-Id: I9da2188f9e6ec2cd07cf4e79ff436cb7c3572c6f
    Reviewed-on: https://gerrit.libreoffice.org/75665
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 827d833df60b..758a1c444b7c 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1022,6 +1022,7 @@ void PrintDialog::checkPaperSize( Size& rPaperSize )
     if ( (eOrientation == Orientation::Portrait && rPaperSize.Width() > rPaperSize.Height()) ||
          (eOrientation == Orientation::Landscape && rPaperSize.Width() < rPaperSize.Height()) )
     {
+        // coverity[swapped_arguments : FALSE] - this is in the correct order
         rPaperSize = Size( rPaperSize.Height(), rPaperSize.Width() );
     }
 }


More information about the Libreoffice-commits mailing list