diff options
author | Philipp Lohmann <pl@openoffice.org> | 2009-08-26 14:24:11 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2009-08-26 14:24:11 +0000 |
commit | 19dd7ce1bf0f8874dfdabc403f7be9b6b69a01df (patch) | |
tree | 8ac90afa07d7d3f250f4449436d701b3d34bf15b /sd/source/ui/view/DocumentRenderer.cxx | |
parent | 7e7a3be17144e44fdd97d044e39164a93fde4f81 (diff) |
#i104516# return correct page sizes
Diffstat (limited to 'sd/source/ui/view/DocumentRenderer.cxx')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index bbb747eb99ca..9bf493719bf1 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1668,6 +1668,14 @@ private: mpPrinter->SetMapMode(aMap); Rectangle aOutRect(aPageOfs, rInfo.mpPrinter->GetOutputSize()); + if( aOutRect.GetWidth() > aOutRect.GetHeight() ) + { + Size aPaperSize( rInfo.mpPrinter->PixelToLogic( rInfo.mpPrinter->GetPaperSizePixel(), MapMode( MAP_100TH_MM ) ) ); + maPrintSize.Width = aPaperSize.Height(); + maPrintSize.Height = aPaperSize.Width(); + aOutRect = Rectangle( Point( aPageOfs.Y(), aPageOfs.X() ), + Size( aOutRect.GetHeight(), aOutRect.GetWidth() ) ); + } Link aOldLink; Outliner* pOutliner = mrBase.GetDocument()->GetInternalOutliner(); |