cppcheck: Logical conjunction always evaluates to false

I don't know how to check it's ok, I just took example above
It seems there was a wrong mix between header and footer test

Change-Id: Ia5bb838e92306f3bb160069a7c62707e365e8ab2
This commit is contained in:
Julien Nabet
2014-08-31 11:15:57 +02:00
parent 880c18f230
commit 8088aeabe4

View File

@@ -1187,8 +1187,8 @@ void HwpReader::makeMasterStyles()
padd(ascii("text:style-name"), sXML_CDATA, ascii("Standard"));
rstartEl(ascii("text:p"), rList);
pList->clear();
if( pPage->pagenumber && pPage->pagenumber->where < 4
&& pPage->pagenumber->where == 7 )
if( pPage->pagenumber && (pPage->pagenumber->where < 4 ||
pPage->pagenumber->where == 7 ) )
{
d->pPn = pPage->pagenumber;
makeShowPageNum();