Changeset 6204 in josm
- Timestamp:
- 2013-08-28T04:12:02+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Bounds.java
r6203 r6204 414 414 */ 415 415 public boolean isCollapsed() { 416 return (minLat == maxLat) && (minLon == maxLon); 416 return Double.doubleToLongBits(minLat) == Double.doubleToLongBits(maxLat) 417 && Double.doubleToLongBits(minLon) == Double.doubleToLongBits(maxLon); 417 418 } 418 419 -
trunk/src/org/openstreetmap/josm/data/osm/BBox.java
r6203 r6204 115 115 */ 116 116 public void add(double x, double y) { 117 118 if (x < xmin) { 119 xmin = x; 120 } else if (x > xmax) { 121 xmax = x; 122 } 123 124 if (y < ymin) { 125 ymin = y; 126 } else if (y > ymax) { 127 ymax = y; 128 } 129 117 xmin = Math.min(xmin, x); 118 xmax = Math.max(xmax, x); 119 ymin = Math.min(ymin, y); 120 ymax = Math.max(ymax, y); 130 121 sanity(); 131 122 }
Note:
See TracChangeset
for help on using the changeset viewer.