summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-10 10:15:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-10 10:44:24 +0000
commit710cfc4de6c76f52f2a2df4b0ea7a62d9f2c0dce (patch)
tree06701be84a6469da75ca15652c0022d38ae136e7
parent544cbe1a523f613ca5fc7ff7a6ee24442f75c516 (diff)
coverity#1242522 silence Arguments in wrong order
Change-Id: I248a99b1c0755c54d4f7dbdd291f382d7d99b9ce
-rw-r--r--sw/source/ui/envelp/envfmt.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx
index 17623df8e60f..fd44a8293976 100644
--- a/sw/source/ui/envelp/envfmt.cxx
+++ b/sw/source/ui/envelp/envfmt.cxx
@@ -207,8 +207,10 @@ IMPL_LINK_INLINE_START( SwEnvFmtPage, ModifyHdl, Edit *, pEdit )
if (pEdit == m_pSizeWidthField || pEdit == m_pSizeHeightField)
{
+ long nRotatedWidth = lHeight;
+ long nRotatedHeight = lWidth;
Paper ePaper = SvxPaperInfo::GetSvxPaper(
- Size(lHeight, lWidth), MAP_TWIP, true);
+ Size(nRotatedWidth, nRotatedHeight), MAP_TWIP, true);
for (size_t i = 0; i < aIDs.size(); ++i)
if (aIDs[i] == (sal_uInt16)ePaper)
m_pSizeFormatBox->SelectEntryPos(static_cast<sal_Int32>(i));