Kaydet (Commit) c4f821f1 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735657 Division or modulo by float zero

or maybe this is closed to the original intent

Change-Id: I0df98616de0b7612acc35e406d34ef9d56c8585c
üst c75d632c
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment