Changeset 33694 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix
- Timestamp:
- 2017-10-03T22:34:26+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/MultipolygonFixer.java
r33311 r33694 17 17 import org.openstreetmap.josm.data.osm.RelationMember; 18 18 import org.openstreetmap.josm.data.osm.Way; 19 import org.openstreetmap.josm.gui.MainApplication; 19 20 20 21 /** … … 46 47 public Command fixRelation(Relation rel) { 47 48 Relation rr = fixMultipolygonRoles(rel); 48 return rr != null ? new ChangeCommand( rel, rr) : null;49 return rr != null ? new ChangeCommand(MainApplication.getLayerManager().getEditDataSet(), rel, rr) : null; 49 50 } 50 51 … … 82 83 if (m.isWay()) { 83 84 String role = null; 84 if (outerWays.contains( (Way)m.getMember())) {85 if (outerWays.contains(m.getMember())) { 85 86 role = "outer"; 86 } else if (innerWays.contains( (Way)m.getMember())) {87 } else if (innerWays.contains(m.getMember())) { 87 88 role = "inner"; 88 89 }
Note:
See TracChangeset
for help on using the changeset viewer.