coverity#735545 Logically dead code

Change-Id: Ifa1bc627da203575b36e7e944c66b945f813016d
This commit is contained in:
Caolán McNamara 2014-05-09 09:56:11 +01:00
parent 6384ca9e49
commit be756e2ca3

View file

@ -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();
}
}