+ display start=n+1 in search result pat if offset=n (people start to count at 1, not 0)

This commit is contained in:
kelson42 2011-08-16 19:28:11 +00:00
parent b7984c5138
commit a596427a5e
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ namespace kiwix {
oData["count"] = this->beautifyInteger(this->estimatedResultCount);
oData["searchPattern"] = this->searchPattern;
oData["resultStart"] = this->resultStart;
oData["resultStart"] = this->resultStart + 1;
oData["resultEnd"] = (this->resultEnd > this->estimatedResultCount ? this->estimatedResultCount : this->resultEnd);
oData["protocolPrefix"] = this->protocolPrefix;
oData["searchProtocolPrefix"] = this->searchProtocolPrefix;