Changeset 3899 in josm
- Timestamp:
- 2011-02-13T20:26:58+01:00 (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r3896 r3899 248 248 if (text == null) 249 249 return; 250 String name = getAreaName(way);250 String name = text.getString(way, this); 251 251 if (name == null || name.equals("")) 252 252 return; -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyle.java
r3888 r3899 47 47 RelativeFloat width_rel = c.get(key, null, RelativeFloat.class, true); 48 48 if (width_rel != null) 49 return relativeTo + 2*width_rel.val;49 return relativeTo + width_rel.val; 50 50 } 51 51 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/TextElement.java
r3888 r3899 6 6 import java.awt.Color; 7 7 import java.awt.Font; 8 import org.openstreetmap.josm.data.osm.OsmPrimitive; 9 import org.openstreetmap.josm.data.osm.visitor.paint.MapPainter; 8 10 9 11 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 80 82 } 81 83 84 public String getString(OsmPrimitive osm, MapPainter painter) { 85 if (textKey == null) 86 return painter.getAreaName(osm); 87 else 88 return osm.get(textKey); 89 } 90 91 82 92 } -
trunk/styles_nodist/potlatch2/build.xml
-
Property svn:eol-style
set to
native
-
Property svn:eol-style
set to
Note:
See TracChangeset
for help on using the changeset viewer.