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/ribbar/inputwin.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/ribbar/inputwin.cxx')
-rw-r--r-- | sw/source/uibase/ribbar/inputwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx index 841dc4a829bb..7cce5f47dd0d 100644 --- a/sw/source/uibase/ribbar/inputwin.cxx +++ b/sw/source/uibase/ribbar/inputwin.cxx @@ -548,8 +548,8 @@ void InputEdit::UpdateRange(const OUString& rBoxes, ++nEndPos; } // Only if the current position lies in the range or right behind. - if( bFound && !( nStartPos < o3tl::make_unsigned(aSelection.Max()) && - static_cast<sal_uInt16>(aSelection.Max()) <= nEndPos + 1 )) + if( bFound && ( nStartPos >= o3tl::make_unsigned(aSelection.Max()) || + static_cast<sal_uInt16>(aSelection.Max()) > nEndPos + 1 )) bFound = false; } if( bFound ) |