diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:14:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:49:09 +0100 |
commit | 51e81c91e9fdb08a10160964b2a638c7fa065f2d (patch) | |
tree | 22c132bfa10390ca677852768692120863680798 /sw | |
parent | d2cf2d813befa4cfb2f709fcb8bc60ba85cf314a (diff) |
coverity#1242512 silence Arguments in wrong order
Change-Id: Ic4e337a17a8149137ff82a64e5513460c36373a0
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/sidebar/PagePropertyPanel.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx index 6b4f2743b01f..fcc9d4523ed5 100644 --- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx +++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx @@ -287,7 +287,9 @@ void PagePropertyPanel::ExecuteOrientationChange( const bool bLandscape ) mpPageItem->SetLandscape( bLandscape ); // swap the width and height of the page size - mpPageSizeItem->SetSize( Size( mpPageSizeItem->GetSize().Height(), mpPageSizeItem->GetSize().Width() ) ); + const long nRotatedWidth = mpPageSizeItem->GetSize().Height(); + const long nRotatedHeight = mpPageSizeItem->GetSize().Width(); + mpPageSizeItem->SetSize(Size(nRotatedWidth, nRotatedHeight)); // apply changed attributes GetBindings()->GetDispatcher()->Execute( SID_ATTR_PAGE_SIZE, SFX_CALLMODE_RECORD, mpPageSizeItem.get(), mpPageItem.get(), 0L ); |