- Timestamp:
- 2018-07-06T19:58:37+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java
r13811 r14007 23 23 import org.openstreetmap.josm.data.osm.Way; 24 24 import org.openstreetmap.josm.data.osm.search.SearchCompiler.InDataSourceArea; 25 import org.openstreetmap.josm.data.osm.visitor.paint.relations.Multipolygon; 25 26 import org.openstreetmap.josm.data.osm.visitor.paint.relations.MultipolygonCache; 26 27 import org.openstreetmap.josm.gui.mappaint.Cascade; … … 764 765 if (e.osm instanceof Way && ((Way) e.osm).isClosed()) 765 766 return true; 766 if (e.osm instanceof Relation && ((Relation) e.osm).isMultipolygon()) 767 return MultipolygonCache.getInstance().get((Relation) e.osm).getOpenEnds().isEmpty(); 767 if (e.osm instanceof Relation && ((Relation) e.osm).isMultipolygon()) { 768 Multipolygon multipolygon = MultipolygonCache.getInstance().get((Relation) e.osm); 769 return multipolygon != null && multipolygon.getOpenEnds().isEmpty(); 770 } 768 771 return false; 769 772 }
Note:
See TracChangeset
for help on using the changeset viewer.