mirror of https://github.com/kiwix/libkiwix.git
Fix regression by suggestion search
This commit is contained in:
parent
f3c4556431
commit
a1486e05d3
|
@ -507,6 +507,7 @@ namespace kiwix {
|
||||||
/* Reset the suggestions otherwise check if the suggestions number is less than the suggestionsCount */
|
/* Reset the suggestions otherwise check if the suggestions number is less than the suggestionsCount */
|
||||||
if (reset) {
|
if (reset) {
|
||||||
this->suggestions.clear();
|
this->suggestions.clear();
|
||||||
|
this->suggestionsOffset = this->suggestions.begin();
|
||||||
} else {
|
} else {
|
||||||
if (this->suggestions.size() > suggestionsCount) {
|
if (this->suggestions.size() > suggestionsCount) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -581,6 +582,7 @@ namespace kiwix {
|
||||||
bool retVal;
|
bool retVal;
|
||||||
|
|
||||||
this->suggestions.clear();
|
this->suggestions.clear();
|
||||||
|
this->suggestionsOffset = this->suggestions.begin();
|
||||||
for (std::vector<std::string>::iterator variantsItr = variants.begin();
|
for (std::vector<std::string>::iterator variantsItr = variants.begin();
|
||||||
variantsItr != variants.end();
|
variantsItr != variants.end();
|
||||||
variantsItr++) {
|
variantsItr++) {
|
||||||
|
|
Loading…
Reference in New Issue