diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-05-31 10:45:47 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-05-31 10:45:47 +0200 |
commit | 44863c2f2fd78c291092037aaf0d7abfa21f773d (patch) | |
tree | e37ec8eadc355883b61f7aef84cfbe9b5f5fa642 /sd/source/ui/slideshow | |
parent | 98c355692e3479f86fccb05e99170c5ccc56aeba (diff) | |
parent | e95ca98b9aaf2399200566373a25a572a43307f4 (diff) |
Merge commit 'libreoffice-3.4.0.2'
Conflicts:
sd/prj/d.lst
sd/source/ui/dlg/sdabstdlg.cxx
sd/util/makefile.mk
Diffstat (limited to 'sd/source/ui/slideshow')
-rw-r--r-- | sd/source/ui/slideshow/slideshowviewimpl.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sd/source/ui/slideshow/slideshowviewimpl.cxx b/sd/source/ui/slideshow/slideshowviewimpl.cxx index edd9264d977b..bafa18ff7964 100644 --- a/sd/source/ui/slideshow/slideshowviewimpl.cxx +++ b/sd/source/ui/slideshow/slideshowviewimpl.cxx @@ -353,11 +353,7 @@ geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (Ru return geometry::AffineMatrix2D (1,0,0,0,1,0); } - // Reduce available width by one, as the slides might actually - // render one pixel wider and higher as aPageSize below specifies - // (when shapes of page size have visible border lines) - const Size aWindowSize( rTmpSize.Width()-1, - rTmpSize.Height()-1 ); + const Size aWindowSize( mrOutputWindow.GetSizePixel() ); Size aOutputSize( aWindowSize ); if( meAnimationMode != ANIMATIONMODE_SHOW ) @@ -384,6 +380,12 @@ geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (Ru Point aOutputOffset( ( aWindowSize.Width() - aOutputSize.Width() ) >> 1, ( aWindowSize.Height() - aOutputSize.Height() ) >> 1 ); + // Reduce available width by one, as the slides might actually + // render one pixel wider and higher as aPageSize below specifies + // (when shapes of page size have visible border lines) + aOutputSize.Width() --; + aOutputSize.Height() --; + maPresentationArea = Rectangle( aOutputOffset, aOutputSize ); mrOutputWindow.SetPresentationArea( maPresentationArea ); |