- Timestamp:
- 2009-11-27T22:49:38+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/SlippyMapChooser.java
r2520 r2524 168 168 return; 169 169 170 // test if a bounding box has been set set170 // test if a bounding box has been set 171 171 if (area.getMin().lat() == 0.0 && area.getMin().lon() == 0.0 && area.getMax().lat() == 0.0 && area.getMax().lon() == 0.0) 172 172 return; … … 200 200 */ 201 201 public void setSelection(Point aStart, Point aEnd) { 202 if (aStart == null || aEnd == null )202 if (aStart == null || aEnd == null || aStart.x == aEnd.x || aStart.y == aEnd.y) 203 203 return; 204 204 205 Point p_max = new Point(Math.max(aEnd.x, aStart.x), Math.max(aEnd.y, aStart.y)); 205 206 Point p_min = new Point(Math.min(aEnd.x, aStart.x), Math.min(aEnd.y, aStart.y));
Note:
See TracChangeset
for help on using the changeset viewer.