git-svn-id: https://osmand.googlecode.com/svn/trunk@307 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-07-08 19:42:11 +00:00
parent c4d79fa614
commit b32a4b3a9c

View file

@ -66,7 +66,11 @@ public class MapUtils {
} else if(e instanceof Relation){
List<LatLon> list = new ArrayList<LatLon>();
for(Entity fe : ((Relation) e).getMembers(null)){
LatLon c = getCenter(fe);
LatLon c = null;
// skip relations to avoid circular dependencies
if(!(fe instanceof Relation)){
c = getCenter(fe);
}
if(c != null){
list.add(c);
}