summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-12 20:33:06 +0000
committerMichael Stahl <mstahl@redhat.com>2014-11-18 12:57:40 +0000
commit60d34e1c840d2c317bb7d0a5b14f4602c22b3fcc (patch)
tree94e0f04f979b966fde20577f4bcee01bf74cb571 /sw
parenta81a24b6a33fca9a750077d9160ebb8316b2fb26 (diff)
coverity#735517 Logically dead code
its possible that this was the original intent, maybe Change-Id: Ia7ab679b84f16ae7aab201b43eb69ce6a693c0f2 Reviewed-on: https://gerrit.libreoffice.org/12392 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/layact.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index 122567b2ab30..355f5e55d911 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -473,8 +473,7 @@ void SwLayAction::InternalAction()
sal_uInt16 nPercentPageNum = 0;
while ( (pPage && !IsInterrupt()) || nCheckPageNum != USHRT_MAX )
{
- if ( !pPage && nCheckPageNum != USHRT_MAX &&
- (!pPage || pPage->GetPhyPageNum() >= nCheckPageNum) )
+ if (!pPage || (nCheckPageNum != USHRT_MAX && pPage->GetPhyPageNum() >= nCheckPageNum))
{
if ( !pPage || pPage->GetPhyPageNum() > nCheckPageNum )
{