Ticket #10638: 10638-v4.patch

File 10638-v4.patch, 881 bytes (added by GerdP, 9 years ago)

Solve remaining zoom in/out problem for given test data

  • src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

     
    413413            b.grow(100, 100);
    414414            Area a = new Area(b);
    415415
    416             // now successively subtract downloaded areas
    417             for (Bounds bounds : data.getDataSourceBounds()) {
    418                 if (bounds.isCollapsed()) {
    419                     continue;
    420                 }
    421                 a.subtract(mv.getState().getArea(bounds));
    422             }
     416            // now subtract downloaded areas
     417            a.subtract(data.getDataSourceArea());
    423418
    424419            // paint remainder
    425420            MapViewPoint anchor = mv.getState().getPointFor(new EastNorth(0, 0));