Changeset 4626 in josm
- Timestamp:
- 2011-12-01T18:07:30+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java
r4624 r4626 50 50 51 51 public final Multipolygon get(NavigatableComponent nc, Relation r) { 52 return get(nc, r, false); 53 } 54 55 public final Multipolygon get(NavigatableComponent nc, Relation r, boolean forceRefresh) { 52 56 Multipolygon multipolygon = null; 53 57 if (nc != null && r != null) { … … 61 65 } 62 66 multipolygon = map2.get(r); 63 if (multipolygon == null ) {67 if (multipolygon == null || forceRefresh) { 64 68 map2.put(r, multipolygon = new Multipolygon(nc, r)); 65 69 } … … 130 134 removeMultipolygonFrom((Relation) p, maps); 131 135 132 } else if (p instanceof Way ) {136 } else if (p instanceof Way && p.getDataSet() != null) { 133 137 for (OsmPrimitive ref : p.getReferrers()) { 134 138 if (isMultipolygon(ref)) { … … 139 143 } 140 144 } 141 } else if (p instanceof Node ) {145 } else if (p instanceof Node && p.getDataSet() != null) { 142 146 maps = removeMultipolygonsReferringTo(p.getReferrers(), ds, maps); 143 147 }
Note:
See TracChangeset
for help on using the changeset viewer.