diff --git a/limereport/lrreportrender.cpp b/limereport/lrreportrender.cpp index e2a302b..6f01c71 100644 --- a/limereport/lrreportrender.cpp +++ b/limereport/lrreportrender.cpp @@ -1527,7 +1527,7 @@ void PagesRanges::addTOCPage() if (tocRange.firstPage == 0) { tocRange.firstPage = 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(); } else { tocRange.lastPage++;