From a7232e3f54c0c2ff1cb65d5d00027427ebb1016a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 2 Oct 2014 14:17:03 +0100 Subject: coverity#1242520 silence Arguments in wrong order Change-Id: I88b96d42f5ee96641dc21e3e55415f6dc32b3951 --- sd/source/filter/eppt/epptso.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sd/source/filter/eppt') 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 ); } } -- cgit v1.2.3