diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 17:08:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 09:07:54 +0100 |
commit | c5401e88b46dcfe1f05edcf3e764f1588692f44e (patch) | |
tree | c4c1daa84f1c170ea3c4507f8d60a31f1dbe5ef0 /sw/source/uibase/shells/grfsh.cxx | |
parent | 9b68625a9d27d3c125a3e2d581862f997ff6f3b3 (diff) |
coverity#1242521 silence Arguments in wrong order
Change-Id: I30b61fa17a941b785a4f148e2ce6c912dbd3c645
Diffstat (limited to 'sw/source/uibase/shells/grfsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/grfsh.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx index e9e651036b84..d70580112d20 100644 --- a/sw/source/uibase/shells/grfsh.cxx +++ b/sw/source/uibase/shells/grfsh.cxx @@ -834,7 +834,9 @@ void SwGrfShell::ExecuteRotation(SfxRequest &rReq) rShell.ReRead(OUString(), OUString(), (const Graphic*) &aGraphic); SwFlyFrmAttrMgr aManager(false, &rShell, rShell.IsFrmSelected() ? FRMMGR_TYPE_NONE : FRMMGR_TYPE_GRF); - Size aSize(aManager.GetSize().Height(), aManager.GetSize().Width()); + const long nRotatedWidth = aManager.GetSize().Height(); + const long nRotatedHeight = aManager.GetSize().Width(); + Size aSize(nRotatedWidth, nRotatedHeight); aManager.SetSize(aSize); aManager.UpdateFlyFrm(); |