Ignore:
Timestamp:
2017-10-03T22:34:26+02:00 (7 years ago)
Author:
donvip
Message:

fix #josm15320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/MultipolygonFixer.java

    r33311 r33694  
    1717import org.openstreetmap.josm.data.osm.RelationMember;
    1818import org.openstreetmap.josm.data.osm.Way;
     19import org.openstreetmap.josm.gui.MainApplication;
    1920
    2021/**
     
    4647    public Command fixRelation(Relation rel) {
    4748        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;
    4950    }
    5051
     
    8283            if (m.isWay()) {
    8384                String role = null;
    84                 if (outerWays.contains((Way)m.getMember())) {
     85                if (outerWays.contains(m.getMember())) {
    8586                    role = "outer";
    86                 } else if (innerWays.contains((Way)m.getMember())) {
     87                } else if (innerWays.contains(m.getMember())) {
    8788                    role = "inner";
    8889                }
Note: See TracChangeset for help on using the changeset viewer.