Fix interpolation display

This commit is contained in:
Victor Shcherb 2012-06-24 13:40:45 +02:00
parent aaacbc9166
commit 3ba10163cc

View file

@ -78,6 +78,17 @@ public class Building extends MapObject {
this.postcode = postcode; this.postcode = postcode;
} }
@Override
public String getName(boolean en) {
String fname = super.getName(en);
if(interpolationInterval !=0){
return fname+"-"+name2 +" (+"+interpolationInterval+") ";
} else if(interpolationType != null) {
return fname+"-"+name2 +" ("+interpolationType.toString().toLowerCase()+") ";
}
return name;
}
@Override @Override
public String toString() { public String toString() {
if(interpolationInterval !=0){ if(interpolationInterval !=0){