Changeset 2668 in josm
- Timestamp:
- 2009-12-20T21:01:25+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r2667 r2668 250 250 } 251 251 if (realWidth > 0 && useRealWidth && !showDirection) { 252 int tmpWidth = (int) (100 / (float) (circum / realWidth));253 if (tmpWidth > width) {254 width = tmpWidth;255 }256 252 257 253 /* if we have a "width" tag, try use it */ … … 263 259 if(widthTag != null) { 264 260 try { 265 width = Integer.parseInt(widthTag);261 realWidth = Integer.parseInt(widthTag); 266 262 } 267 263 catch(NumberFormatException nfe) { 268 264 } 265 } 266 267 int tmpWidth = (int) (100 / (float) (circum / realWidth)); 268 if (tmpWidth > width) { 269 width = tmpWidth; 269 270 } 270 271 } -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r2666 r2668 582 582 583 583 private void setEditLayer() { 584 OsmDataLayer newEditLayer = null;584 OsmDataLayer newEditLayer = editLayer; 585 585 OsmDataLayer oldEditLayer = editLayer; 586 586
Note:
See TracChangeset
for help on using the changeset viewer.