From f3259873e18f9ead3de00739735620bd941b04a4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 2 Oct 2014 16:54:29 +0100 Subject: coverity#1242533 silence Arguments in wrong order Change-Id: I7031e7408f5bcd9ae85fc50952253e14d2fb2edf --- sd/source/ui/view/DocumentRenderer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sd') 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; -- cgit