Changeset 8319 in josm for trunk


Ignore:
Timestamp:
2015-05-03T19:13:08+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #11400 - allow osm.notes.daysClosed=-1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java

    r8308 r8319  
    166166        // see result_limit in https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/notes_controller.rb
    167167        CheckParameterUtil.ensureThat(noteLimit <= 10000, "Requested note limit is over API hard limit of 10000.");
    168         CheckParameterUtil.ensureThat(daysClosed >= 0, "Requested note limit is less than 0.");
     168        CheckParameterUtil.ensureThat(daysClosed >= -1, "Requested note limit is less than -1.");
    169169        String url = "notes?limit=" + noteLimit + "&closed=" + daysClosed + "&bbox=" + lon1 + "," + lat1 + "," + lon2 + "," + lat2;
    170170        try {
Note: See TracChangeset for help on using the changeset viewer.