0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 16:44:39 +03:00

and -> &&

This commit is contained in:
Arin Alexander 2019-01-21 00:12:54 +03:00
parent 83fd13589e
commit 7aeb938f86

View File

@ -1560,7 +1560,7 @@ void PagesRanges::addTOCPage()
if (tocRange.firstPage == 0) { if (tocRange.firstPage == 0) {
tocRange.firstPage = tocRange.lastPage == 0 ? 1 : tocRange.lastPage; tocRange.firstPage = tocRange.lastPage == 0 ? 1 : tocRange.lastPage;
tocRange.lastPage = tocRange.lastPage == 0 ? 1 : tocRange.lastPage; tocRange.lastPage = tocRange.lastPage == 0 ? 1 : tocRange.lastPage;
if (tocRange.lastPage == 1 and tocRange.lastPage == 1) if (tocRange.lastPage == 1 && tocRange.lastPage == 1)
shiftRangesNextToTOC(); shiftRangesNextToTOC();
} else { } else {
tocRange.lastPage++; tocRange.lastPage++;