Browse Source

bug fix

master
XiaXiang 7 years ago
parent
commit
698b6c4319
  1. 4
      designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java

4
designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java

@ -230,7 +230,9 @@ public class RecentSearchManager extends XMLFileManager implements AlphaFineSear
Collections.sort(resultModelList);
int size = resultModelList.size();
if (size > MAX_SIZE) {
return (SearchResult) resultModelList.subList(0, MAX_SIZE);
SearchResult result = new SearchResult();
result.addAll(resultModelList.subList(0, MAX_SIZE));
return result;
}
return resultModelList;
}

Loading…
Cancel
Save