Changeset 2524 in josm for trunk


Ignore:
Timestamp:
2009-11-27T22:49:38+01:00 (15 years ago)
Author:
stoecker
Message:

close #2797 - no longer allow empty area in slippy map downloader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/SlippyMapChooser.java

    r2520 r2524  
    168168            return;
    169169
    170         // test if a bounding box has been set set
     170        // test if a bounding box has been set
    171171        if (area.getMin().lat() == 0.0 && area.getMin().lon() == 0.0 && area.getMax().lat() == 0.0 && area.getMax().lon() == 0.0)
    172172            return;
     
    200200     */
    201201    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)
    203203            return;
     204
    204205        Point p_max = new Point(Math.max(aEnd.x, aStart.x), Math.max(aEnd.y, aStart.y));
    205206        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.