Index: trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java =================================================================== --- trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java (revision 4282) +++ trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java (revision 4431) @@ -74,5 +74,5 @@ /** *
Replies the projected east/north coordinates.
- * + * *Uses the {@link Main#getProjection() global projection} to project the lan/lon-coordinates. * Internally caches the projected coordinates.
@@ -80,8 +80,8 @@ *Caveat: doesn't listen to projection changes. Clients must * {@link #reproject() trigger a reprojection} or {@link #invalidateEastNorthCache() invalidate the internal cache}.
- * + * * @return the east north coordinates or {@code null} * @see #invalidateEastNorthCache() - * + * */ public final EastNorth getEastNorth() { @@ -123,6 +123,9 @@ @Override - public Object getTemplateValue(String name) { - return attr.get(name); + public Object getTemplateValue(String name, boolean special) { + if (!special) + return attr.get(name); + else + return null; }