diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-12 14:39:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-12 20:25:21 +0000 |
commit | c4f821f17cb8c970d1d8abd86a1f780250d96734 (patch) | |
tree | 4bffd3a2c2812ff20ab1daf48bfd117575efc37d /sw | |
parent | c75d632c85ddf18d51b98894a424e178a77dd2d3 (diff) |
coverity#735657 Division or modulo by float zero
or maybe this is closed to the original intent
Change-Id: I0df98616de0b7612acc35e406d34ef9d56c8585c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/layact.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index f664f7095962..64428e112d54 100644 --- a/sw/source/core/layout/layact.cxx +++ b/sw/source/core/layout/layact.cxx @@ -474,8 +474,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 ) { |