diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 13:13:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 19:43:11 +0200 |
commit | 52c2cf22aa78ee886ee447a2629332e1e6f6c611 (patch) | |
tree | 9b91680232117080901a968a90d6bb33c2becda9 /sw/source/uibase/uiview/view2.cxx | |
parent | b81432a23c900329ece07854fd06a322225a97c1 (diff) |
loplugin:simplifybool in sw
Change-Id: Ib842d5a768806fc41a66802908acc8679cf7a985
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95107
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uiview/view2.cxx')
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 72481f9a608b..066b6d855c54 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -1788,7 +1788,7 @@ void SwView::ExecuteStatusLine(SfxRequest &rReq) if ( SfxItemState::SET == pArgs->GetItemState(SID_ATTR_VIEWLAYOUT, true, &pItem )) { const sal_uInt16 nColumns = static_cast<const SvxViewLayoutItem *>(pItem)->GetValue(); - const bool bBookMode = !(0 == nColumns || 0 != (nColumns % 2)) && + const bool bBookMode = (0 != nColumns && 0 == (nColumns % 2)) && static_cast<const SvxViewLayoutItem *>(pItem)->IsBookMode(); SetViewLayout( nColumns, bBookMode ); |