Changeset 16421 in josm for trunk/src/org
- Timestamp:
- 2020-05-16T16:38:29+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java
r14120 r16421 130 130 } 131 131 132 private static boolean isMultipolygon(OsmPrimitive p) {133 return p instanceof Relation && ((Relation) p).isMultipolygon();134 }135 136 132 private void updateMultipolygonsReferringTo(AbstractDatasetChangedEvent event) { 137 133 updateMultipolygonsReferringTo(event, event.getPrimitives(), event.getDataset()); … … 149 145 if (primitives != null) { 150 146 for (OsmPrimitive p : primitives) { 151 if ( isMultipolygon(p)) {147 if (p.isMultipolygon()) { 152 148 if (maps == null) { 153 149 maps = getMapsFor(ds); … … 157 153 } else if (p instanceof Way && p.getDataSet() != null) { 158 154 for (OsmPrimitive ref : p.getReferrers()) { 159 if ( isMultipolygon(ref)) {155 if (ref.isMultipolygon()) { 160 156 if (maps == null) { 161 157 maps = getMapsFor(ds); … … 256 252 Collection<Map<Relation, Multipolygon>> maps = null; 257 253 for (OsmPrimitive p : event.getPrimitives()) { 258 if ( isMultipolygon(p)) {254 if (p.isMultipolygon()) { 259 255 if (maps == null) { 260 256 maps = getMapsFor(event.getDataset()); … … 310 306 } 311 307 for (OsmPrimitive ref : p.getReferrers()) { 312 if ( isMultipolygon(ref)) {308 if (ref.isMultipolygon()) { 313 309 if (maps == null) { 314 310 maps = getMapsFor(ds);
Note:
See TracChangeset
for help on using the changeset viewer.