Changeset 33708 in osm for applications


Ignore:
Timestamp:
2017-10-07T13:53:59+02:00 (7 years ago)
Author:
donvip
Message:

fix #josm15403, fix #josm15407, fix #josm15412

Location:
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix
Files:
3 edited

Legend:

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

    r32398 r33708  
    1717import org.openstreetmap.josm.data.osm.RelationMember;
    1818import org.openstreetmap.josm.data.osm.Way;
     19import org.openstreetmap.josm.gui.MainApplication;
    1920
    2021public class AssociatedStreetFixer extends RelationFixer {
     
    134135        List<Command> commandList = new ArrayList<>();
    135136        if (fixed) {
    136             commandList.add(new ChangeCommand(source, rel));
     137            commandList.add(new ChangeCommand(MainApplication.getLayerManager().getEditDataSet(), source, rel));
    137138        }
    138139
     
    150151                newWay.put("name", commonName);
    151152
    152                 commandList.add(new ChangeCommand(oldWay, newWay));
     153                commandList.add(new ChangeCommand(MainApplication.getLayerManager().getEditDataSet(), oldWay, newWay));
    153154            }
    154155         */
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/BoundaryFixer.java

    r32395 r33708  
    1010import org.openstreetmap.josm.data.osm.Relation;
    1111import org.openstreetmap.josm.data.osm.RelationMember;
     12import org.openstreetmap.josm.gui.MainApplication;
    1213
    1314
     
    6566            r = rr;
    6667        }
    67         return fixed ? new ChangeCommand(rel, r) : null;
     68        return fixed ? new ChangeCommand(MainApplication.getLayerManager().getEditDataSet(), rel, r) : null;
    6869    }
    6970
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/PublicTransportFixer.java

    r32395 r33708  
    99import org.openstreetmap.josm.data.osm.Relation;
    1010import org.openstreetmap.josm.data.osm.RelationMember;
     11import org.openstreetmap.josm.gui.MainApplication;
    1112
    1213import relcontext.actions.PublicTransportHelper;
     
    6364            r = rr;
    6465        }
    65         return fixed ? new ChangeCommand(rel, r) : null;
     66        return fixed ? new ChangeCommand(MainApplication.getLayerManager().getEditDataSet(), rel, r) : null;
    6667    }
    6768
Note: See TracChangeset for help on using the changeset viewer.