Changeset 10629 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-07-24T21:18:03+02:00 (8 years ago)
Author:
simon04
Message:

fix #13085 - When downloading from Overpass, a "download area too large" warning is incorrectly displayed

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java

    r10252 r10629  
    221221        }
    222222
     223        @Override
     224        protected void updateSizeCheck() {
     225            displaySizeCheckResult(false);
     226        }
    223227    }
    224228
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r10627 r10629  
    246246    }
    247247
    248     private void updateSizeCheck() {
     248    protected void updateSizeCheck() {
    249249        boolean isAreaTooLarge = false;
    250250        if (currentBounds == null) {
     
    258258            isAreaTooLarge = currentBounds.getArea() > Main.pref.getDouble("osm-server.max-request-area", 0.25);
    259259        }
     260        displaySizeCheckResult(isAreaTooLarge);
     261    }
     262
     263    protected void displaySizeCheckResult(boolean isAreaTooLarge) {
    260264        if (isAreaTooLarge) {
    261265            sizeCheck.setText(tr("Download area too large; will probably be rejected by server"));
Note: See TracChangeset for help on using the changeset viewer.