Browse Source

bug fix

master
XiaXiang 8 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); Collections.sort(resultModelList);
int size = resultModelList.size(); int size = resultModelList.size();
if (size > MAX_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; return resultModelList;
} }

Loading…
Cancel
Save