This commit is contained in:
Victor Shcherb 2017-03-25 00:22:37 +01:00
parent 6d2d9b1d94
commit 115efbe113

View file

@ -198,6 +198,9 @@ public class SearchUICore {
String type2 = a2.getType().getKeyName(); String type2 = a2.getType().getKeyName();
String subType1 = a1.getSubType(); String subType1 = a1.getSubType();
String subType2 = a2.getSubType(); String subType2 = a2.getSubType();
if(a1.getId().longValue() == a2.getId().longValue() && (subType1.equals("building") || subType2.equals("building"))) {
return true;
}
if (!type1.equals(type2)) { if (!type1.equals(type2)) {
return false; return false;
} }