Fix interpolation display
This commit is contained in:
parent
aaacbc9166
commit
3ba10163cc
1 changed files with 11 additions and 0 deletions
|
@ -78,6 +78,17 @@ public class Building extends MapObject {
|
|||
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
|
||||
public String toString() {
|
||||
if(interpolationInterval !=0){
|
||||
|
|
Loading…
Reference in a new issue