From 3ba10163cc50112cccc7c603d3df6b53bf0b8fa6 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 24 Jun 2012 13:40:45 +0200 Subject: [PATCH] Fix interpolation display --- DataExtractionOSM/src/net/osmand/data/Building.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/DataExtractionOSM/src/net/osmand/data/Building.java b/DataExtractionOSM/src/net/osmand/data/Building.java index 7bb1d2d726..a000ea9a6b 100644 --- a/DataExtractionOSM/src/net/osmand/data/Building.java +++ b/DataExtractionOSM/src/net/osmand/data/Building.java @@ -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){