Ignore:
Timestamp:
2017-03-25T23:34:39+01:00 (3 years ago)
Author:
Don-vip
Message:

fix #14572 - Don't index MultipolygonCache by NavigatableComponent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r11664 r11779  
    533533        final Multipolygon mp = Main.map == null || Main.map.mapView == null
    534534                ? new Multipolygon(multipolygon)
    535                 : MultipolygonCache.getInstance().get(Main.map.mapView, multipolygon);
     535                : MultipolygonCache.getInstance().get(multipolygon);
    536536        Path2D path = new Path2D.Double();
    537537        path.setWindingRule(Path2D.WIND_EVEN_ODD);
     
    673673        final Multipolygon mp = Main.map == null || Main.map.mapView == null
    674674                ? new Multipolygon(multipolygon)
    675                 : MultipolygonCache.getInstance().get(Main.map.mapView, multipolygon);
     675                : MultipolygonCache.getInstance().get(multipolygon);
    676676        for (Multipolygon.PolyData pd : mp.getCombinedPolygons()) {
    677677            area += pd.getAreaAndPerimeter(Projections.getProjectionByCode("EPSG:54008")).getArea();
Note: See TracChangeset for help on using the changeset viewer.