From a1486e05d31d1e517f068eefa833e90e0b28dda5 Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Sun, 16 Aug 2015 19:22:10 +0200 Subject: [PATCH] Fix regression by suggestion search --- src/common/kiwix/reader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/kiwix/reader.cpp b/src/common/kiwix/reader.cpp index 11adfe1b7..2e0f633fb 100644 --- a/src/common/kiwix/reader.cpp +++ b/src/common/kiwix/reader.cpp @@ -507,6 +507,7 @@ namespace kiwix { /* Reset the suggestions otherwise check if the suggestions number is less than the suggestionsCount */ if (reset) { this->suggestions.clear(); + this->suggestionsOffset = this->suggestions.begin(); } else { if (this->suggestions.size() > suggestionsCount) { return false; @@ -581,6 +582,7 @@ namespace kiwix { bool retVal; this->suggestions.clear(); + this->suggestionsOffset = this->suggestions.begin(); for (std::vector::iterator variantsItr = variants.begin(); variantsItr != variants.end(); variantsItr++) {