mirror of https://github.com/kiwix/libkiwix.git
+ in getHtml(), fix the range end value if end > estimatedCount
This commit is contained in:
parent
0f1bfed262
commit
db145fb4a7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue