summaryrefslogtreecommitdiff
path: root/sw/source/core/objectpositioning
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 13:13:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 19:43:11 +0200
commit52c2cf22aa78ee886ee447a2629332e1e6f6c611 (patch)
tree9b91680232117080901a968a90d6bb33c2becda9 /sw/source/core/objectpositioning
parentb81432a23c900329ece07854fd06a322225a97c1 (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/core/objectpositioning')
-rw-r--r--sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
index 95331da7f8a2..e115ed5a688b 100644
--- a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
+++ b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
@@ -654,8 +654,8 @@ void SwToContentAnchoredObjectPosition::CalcPosition()
// which are anchored inside a table, doesn't follow
// the text flow.
if ( DoesObjFollowsTextFlow() &&
- !( aVert.GetRelationOrient() == text::RelOrientation::PAGE_FRAME ||
- aVert.GetRelationOrient() == text::RelOrientation::PAGE_PRINT_AREA ) &&
+ ( aVert.GetRelationOrient() != text::RelOrientation::PAGE_FRAME &&
+ aVert.GetRelationOrient() != text::RelOrientation::PAGE_PRINT_AREA ) &&
!GetAnchorFrame().IsInTab() )
{
if ( bMoveable )
@@ -811,8 +811,8 @@ void SwToContentAnchoredObjectPosition::CalcPosition()
}
if ( DoesObjFollowsTextFlow() &&
- !( aVert.GetRelationOrient() == text::RelOrientation::PAGE_FRAME ||
- aVert.GetRelationOrient() == text::RelOrientation::PAGE_PRINT_AREA ) )
+ ( aVert.GetRelationOrient() != text::RelOrientation::PAGE_FRAME &&
+ aVert.GetRelationOrient() != text::RelOrientation::PAGE_PRINT_AREA ) )
{
nDist = aRectFnSet.BottomDist( GetAnchoredObj().GetObjRect(),