Changeset 6070 in josm for trunk/src/org/openstreetmap/josm/gui/history
- Timestamp:
- 2013-07-17T00:01:49+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r5356 r6070 259 259 LatLon coord = node.getCoords(); 260 260 LatLon oppositeCoord = oppositeNode.getCoords(); 261 261 262 262 // display the coordinates 263 263 // … … 267 267 // update background color to reflect differences in the coordinates 268 268 // 269 if (coord == oppositeCoord || 269 if (coord == oppositeCoord || 270 270 (coord != null && oppositeCoord != null && coord.lat() == oppositeCoord.lat())) { 271 271 lblLat.setBackground(Color.WHITE); … … 273 273 lblLat.setBackground(BGCOLOR_DIFFERENCE); 274 274 } 275 if (coord == oppositeCoord || 275 if (coord == oppositeCoord || 276 276 (coord != null && oppositeCoord != null && coord.lon() == oppositeCoord.lon())) { 277 277 lblLon.setBackground(Color.WHITE); … … 285 285 } 286 286 } 287 287 288 288 private static class DistanceViewer extends LatLonViewer { 289 289 290 290 private JLabel lblDistance; 291 291 292 292 public DistanceViewer(HistoryBrowserModel model) { 293 293 super(model, PointInTimeType.REFERENCE_POINT_IN_TIME); … … 329 329 LatLon coord = node.getCoords(); 330 330 LatLon oppositeCoord = oppositeNode.getCoords(); 331 331 332 332 // update distance 333 333 //
Note:
See TracChangeset
for help on using the changeset viewer.