summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-08-09 23:15:28 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2013-08-10 16:02:21 +0000
commit0b6ad716d1fbae7523359fdaf1d6a716eae9a891 (patch)
tree39c2393782e2c690d07a0b8bf816860457a5e47e /sw
parent5c892638821b9e63a768047bee24fd52494de0c3 (diff)
Remove redundant conditions
Change-Id: Ieff61755865b90d0c470b6257ac3d5aae1543397 Reviewed-on: https://gerrit.libreoffice.org/5341 Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com> Tested-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doctxm.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index aa3b58cd4593..1ad2b0ecf856 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -257,8 +257,7 @@ const SwTOXMark& SwDoc::GotoTOXMark( const SwTOXMark& rCurTOXMark,
break;
/* no break here */
case TOX_PRV:
- if ( (aAbsNew < aAbsIdx && aAbsNew > aPrevPos &&
- aPrevPos != aAbsIdx && aAbsNew != aAbsIdx ) ||
+ if ( (aAbsNew < aAbsIdx && aAbsNew > aPrevPos) ||
(aAbsIdx == aAbsNew &&
(sal_uLong(&rCurTOXMark) > sal_uLong(pTOXMark) &&
(!pNew ||
@@ -282,8 +281,7 @@ const SwTOXMark& SwDoc::GotoTOXMark( const SwTOXMark& rCurTOXMark,
break;
/* no break here */
case TOX_NXT:
- if ( (aAbsNew > aAbsIdx && aAbsNew < aNextPos &&
- aNextPos != aAbsIdx && aAbsNew != aAbsIdx ) ||
+ if ( (aAbsNew > aAbsIdx && aAbsNew < aNextPos) ||
(aAbsIdx == aAbsNew &&
(sal_uLong(&rCurTOXMark) < sal_uLong(pTOXMark) &&
(!pNew ||