diff --git a/src/org/openstreetmap/josm/gui/mappaint/LabelCompositionStrategy.java b/src/org/openstreetmap/josm/gui/mappaint/LabelCompositionStrategy.java
index 46e9f67..28678c0 100644
|
a
|
b
|
public abstract class LabelCompositionStrategy {
|
| 167 | 167 | * @since 6541 |
| 168 | 168 | */ |
| 169 | 169 | static public final String[] DEFAULT_NAME_COMPLEMENT_TAGS = { |
| 170 | | "capacity" |
| | 170 | "capacity", |
| | 171 | "addr:housenumber", |
| 171 | 172 | }; |
| 172 | 173 | |
| 173 | 174 | private List<String> nameTags = new ArrayList<String>(); |
| … |
… |
public abstract class LabelCompositionStrategy {
|
| 263 | 264 | |
| 264 | 265 | private String getPrimitiveName(OsmPrimitive n) { |
| 265 | 266 | String name = null; |
| | 267 | String usedNameTag = null; |
| 266 | 268 | if (!n.hasKeys()) return null; |
| 267 | 269 | for (String rn : nameTags) { |
| 268 | 270 | name = n.get(rn); |
| 269 | 271 | if (name != null) { |
| | 272 | usedNameTag = rn; |
| 270 | 273 | break; |
| 271 | 274 | } |
| 272 | 275 | } |
| 273 | 276 | for (String rn : nameComplementTags) { |
| 274 | 277 | String comp = n.get(rn); |
| 275 | | if (comp != null) { |
| | 278 | if (comp != null && !rn.equals(usedNameTag)) { |
| 276 | 279 | if (name == null) { |
| 277 | 280 | name = comp; |
| 278 | 281 | } else { |