summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx4
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;