summaryrefslogtreecommitdiff
path: root/filter/source/msfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 17:05:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-03 09:07:53 +0100
commit9b68625a9d27d3c125a3e2d581862f997ff6f3b3 (patch)
treedc8f736c95084a2a7c6ecb2373df7ec2f957821f /filter/source/msfilter
parent73fe3fb9f8dd2f8e70fd34cf340778b5017a54bb (diff)
coverity#1242529 silence Arguments in wrong order
Change-Id: I662c89e6e3e0917b51e8084bc50a9ea38d6c0838
Diffstat (limited to 'filter/source/msfilter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 5b4599ea2bc1..c3efb0aaa1b2 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4009,7 +4009,9 @@ SdrObject* SvxMSDffManager::ImportGroup( const DffRecordHeader& rHd, SvStream& r
sal_Int32 nHalfHeight = ( aClientRect.GetHeight() + 1 ) >> 1;
Point aTopLeft( aClientRect.Left() + nHalfWidth - nHalfHeight,
aClientRect.Top() + nHalfHeight - nHalfWidth );
- Size aNewSize( aClientRect.GetHeight(), aClientRect.GetWidth() );
+ const long nRotatedWidth = aClientRect.GetHeight();
+ const long nRotatedHeight = aClientRect.GetWidth();
+ Size aNewSize(nRotatedWidth, nRotatedHeight);
Rectangle aNewRect( aTopLeft, aNewSize );
aClientRect = aNewRect;
}