Commit 14c495d0 authored by Cameron's avatar Cameron Committed by Commit Bot

CrOS: fixing small errors from CL 1687296

Bug: 981023 (marked fixed by CL above)
Change-Id: I7757b24f08ad7b718b2ad6b209f79d302290c223
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1703005Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678012}
parent 22f086fa
......@@ -301,8 +301,7 @@ std::vector<SearchResult*> SearchResultTileItemListView::GetDisplayResults() {
});
for (auto* result : policy_tiles_results) {
// if the app is requesting to be placed in an index out of bounds
if (result->display_index() + 1 > display_results.size()) {
if (result->display_index() > display_results.size() - 1) {
display_results.emplace_back(result);
} else {
display_results.emplace(display_results.begin() + result->display_index(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment