From c4f821f17cb8c970d1d8abd86a1f780250d96734 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 12 Nov 2014 14:39:40 +0000 Subject: coverity#735657 Division or modulo by float zero or maybe this is closed to the original intent Change-Id: I0df98616de0b7612acc35e406d34ef9d56c8585c --- sw/source/core/layout/layact.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw') 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 ) { -- cgit