+ in getHtml(), fix the range end value if end > estimatedCount

This commit is contained in:
kelson42 2011-03-30 21:10:20 +00:00
parent 0f1bfed262
commit db145fb4a7
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ namespace kiwix {
oData["count"] = this->beautifyInteger(this->estimatedResultCount);
oData["searchPattern"] = this->searchPattern;
oData["resultStart"] = this->resultStart;
oData["resultEnd"] = this->resultEnd;
oData["resultEnd"] = (this->resultEnd > this->estimatedResultCount ? this->estimatedResultCount : this->resultEnd);
STLW::string sResult;
StringOutputCollector oDataCollector(sResult);