sw/source/core/doc/doctxm.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 0b6ad716d1fbae7523359fdaf1d6a716eae9a891 Author: Matteo Casalin <matteo.casa...@yahoo.com> Date: Fri Aug 9 23:15:28 2013 +0200 Remove redundant conditions Change-Id: Ieff61755865b90d0c470b6257ac3d5aae1543397 Reviewed-on: https://gerrit.libreoffice.org/5341 Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> Tested-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index aa3b58c..1ad2b0e 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 || _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits