mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Fix a small bug in the indexing code to avoid forgetting around 100 articler per ZIM file
This commit is contained in:
@ -66,7 +66,7 @@ namespace kiwix {
|
||||
this->indexNextPercentPre();
|
||||
|
||||
while(this->currentArticleOffset < thresholdOffset &&
|
||||
this->currentArticleOffset < this->lastArticleOffset) {
|
||||
this->currentArticleOffset <= this->lastArticleOffset) {
|
||||
|
||||
zim::Article currentArticle;
|
||||
|
||||
@ -114,8 +114,7 @@ namespace kiwix {
|
||||
this->indexNextPercentPost();
|
||||
|
||||
/* increment the offset and set returned value */
|
||||
if (this->currentArticleOffset < this->lastArticleOffset) {
|
||||
this->currentArticleOffset++;
|
||||
if (this->currentArticleOffset <= this->lastArticleOffset) {
|
||||
return true;
|
||||
} else {
|
||||
this->stopIndexing();
|
||||
|
Reference in New Issue
Block a user