fix bug
git-svn-id: https://osmand.googlecode.com/svn/trunk@307 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
c4d79fa614
commit
b32a4b3a9c
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@ public class MapUtils {
|
||||||
} else if(e instanceof Relation){
|
} else if(e instanceof Relation){
|
||||||
List<LatLon> list = new ArrayList<LatLon>();
|
List<LatLon> list = new ArrayList<LatLon>();
|
||||||
for(Entity fe : ((Relation) e).getMembers(null)){
|
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){
|
if(c != null){
|
||||||
list.add(c);
|
list.add(c);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue