From 710cfc4de6c76f52f2a2df4b0ea7a62d9f2c0dce Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 10 Nov 2014 10:15:04 +0000 Subject: coverity#1242522 silence Arguments in wrong order Change-Id: I248a99b1c0755c54d4f7dbdd291f382d7d99b9ce --- sw/source/ui/envelp/envfmt.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw') 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(i)); -- cgit