Changeset 3222 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-05-08T17:44:45+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
-
data/osm/visitor/paint/MapPainter.java (modified) (1 diff)
-
gui/mappaint/IconElemStyle.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r3201 r3222 180 180 } 181 181 182 public void drawNodeIcon(Node n, ImageIcon icon, boolean annotate, booleanselected, String name) {182 public void drawNodeIcon(Node n, ImageIcon icon, boolean selected, String name) { 183 183 Point p = nc.getPoint(n); 184 184 if ((p.x < 0) || (p.y < 0) || (p.x > nc.getWidth()) || (p.y > nc.getHeight())) return; -
trunk/src/org/openstreetmap/josm/gui/mappaint/IconElemStyle.java
r2675 r3222 42 42 if (painter.isShowIcons()) { 43 43 Node n = (Node) primitive; 44 String name = painter.isShowNames()?painter.getNodeName(n):null; 45 painter.drawNodeIcon(n, (painter.isInactive() || n.isDisabled())?getDisabledIcon():icon, 46 annotate, selected, name); 44 String name = painter.isShowNames() && annotate?painter.getNodeName(n):null; 45 painter.drawNodeIcon(n, (painter.isInactive() || n.isDisabled())?getDisabledIcon():icon, selected, name); 47 46 } else { 48 47 SimpleNodeElemStyle.INSTANCE.paintPrimitive(primitive, settings, painter, selected);
Note:
See TracChangeset
for help on using the changeset viewer.
