summaryrefslogtreecommitdiff
path: root/sd/source/filter/eppt
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 14:17:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:49:10 +0100
commita7232e3f54c0c2ff1cb65d5d00027427ebb1016a (patch)
tree39bdfe2344e6aa83cb9fb4e78e06057550568847 /sd/source/filter/eppt
parent51e81c91e9fdb08a10160964b2a638c7fa065f2d (diff)
coverity#1242520 silence Arguments in wrong order
Change-Id: I88b96d42f5ee96641dc21e3e55415f6dc32b3951
Diffstat (limited to 'sd/source/filter/eppt')
-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 );
}
}