summaryrefslogtreecommitdiff
path: root/sd/source/filter/eppt/epptso.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/filter/eppt/epptso.cxx')
-rw-r--r--sd/source/filter/eppt/epptso.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 3f23530eece3..eef8ac79939b 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -1025,7 +1025,9 @@ void PPTWriter::ImplFlipBoundingBox( EscherPropertyContainer& rPropOpt )
// vertical. Therefore, we need to put down it BEFORE THE ROTATION.
::com::sun::star::awt::Point
aTopLeft( (sal_Int32)( maRect.Left() + fWidthHalf - fHeightHalf ), (sal_Int32)( maRect.Top() + fHeightHalf - fWidthHalf ) );
- Size aNewSize( maRect.GetHeight(), maRect.GetWidth() );
+ const long nRotatedWidth(maRect.GetHeight());
+ const long nRotatedHeight(maRect.GetWidth());
+ const Size aNewSize(nRotatedWidth, nRotatedHeight);
maRect = Rectangle( Point( aTopLeft.X, aTopLeft.Y ), aNewSize );
}
}