Kaydet (Commit) 51e81c91 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242512 silence Arguments in wrong order

Change-Id: Ic4e337a17a8149137ff82a64e5513460c36373a0
üst d2cf2d81
...@@ -287,7 +287,9 @@ void PagePropertyPanel::ExecuteOrientationChange( const bool bLandscape ) ...@@ -287,7 +287,9 @@ void PagePropertyPanel::ExecuteOrientationChange( const bool bLandscape )
mpPageItem->SetLandscape( bLandscape ); mpPageItem->SetLandscape( bLandscape );
// swap the width and height of the page size // 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 // apply changed attributes
GetBindings()->GetDispatcher()->Execute( SID_ATTR_PAGE_SIZE, SFX_CALLMODE_RECORD, mpPageSizeItem.get(), mpPageItem.get(), 0L ); GetBindings()->GetDispatcher()->Execute( SID_ATTR_PAGE_SIZE, SFX_CALLMODE_RECORD, mpPageSizeItem.get(), mpPageItem.get(), 0L );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment