diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:56:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 10:44:20 +0100 |
commit | be756e2ca3e23c9ee60b7418a2339700966f14f4 (patch) | |
tree | ce0662549e44d60980df95319d40e78e5ab09f03 | |
parent | 6384ca9e4908635d805189ee15e4abe0b602fcfa (diff) |
coverity#735545 Logically dead code
Change-Id: Ifa1bc627da203575b36e7e944c66b945f813016d
-rw-r--r-- | sw/source/core/uibase/uiview/viewmdi.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/core/uibase/uiview/viewmdi.cxx b/sw/source/core/uibase/uiview/viewmdi.cxx index 6181c5d5ad54..c681a8fe38b3 100644 --- a/sw/source/core/uibase/uiview/viewmdi.cxx +++ b/sw/source/core/uibase/uiview/viewmdi.cxx @@ -222,11 +222,9 @@ void SwView::SetViewLayout( sal_uInt16 nColumns, bool bBookMode, bool bViewOnly if ( nColumns != pUsrPref->GetViewLayoutColumns() || bBookMode != pUsrPref->IsViewLayoutBookMode() ) { - pUsrPref->SetViewLayoutColumns( nColumns ); - pUsrPref->SetViewLayoutBookMode( bBookMode ); - SW_MOD()->ApplyUsrPref( *pUsrPref, - bViewOnly ? this: 0, - bViewOnly ? VIEWOPT_DEST_VIEW_ONLY : 0 ); + pUsrPref->SetViewLayoutColumns(nColumns); + pUsrPref->SetViewLayoutBookMode(bBookMode); + SW_MOD()->ApplyUsrPref(*pUsrPref, 0, 0); pUsrPref->SetModified(); } } |