diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 16:54:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 09:07:53 +0100 |
commit | f3259873e18f9ead3de00739735620bd941b04a4 (patch) | |
tree | 8461c23994c9bb8329850b6c02a76ed5c1f7fef9 /sd | |
parent | b0e3e11c263eb41054643bc34a1de3816444951a (diff) |
coverity#1242533 silence Arguments in wrong order
Change-Id: I7031e7408f5bcd9ae85fc50952253e14d2fb2edf
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 3e67f53192dd..f61224fa1aef 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1618,8 +1618,10 @@ private: Size aPaperSize( rInfo.mpPrinter->PixelToLogic( rInfo.mpPrinter->GetPaperSizePixel(), MapMode( MAP_100TH_MM ) ) ); maPrintSize.Width = aPaperSize.Height(); maPrintSize.Height = aPaperSize.Width(); + const long nRotatedWidth = aOutRect.GetHeight(); + const long nRotatedHeight = aOutRect.GetWidth(); aOutRect = Rectangle( Point( aPageOfs.Y(), aPageOfs.X() ), - Size( aOutRect.GetHeight(), aOutRect.GetWidth() ) ); + Size( nRotatedWidth, nRotatedHeight ) ); } Link aOldLink; |