Ignore:
Timestamp:
2009-05-23T20:24:40+02:00 (15 years ago)
Author:
stoecker
Message:

fixed #2172 - Teemu Koskinen - ReverseWayTagCorrector's role correction broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r1195 r1613  
    3535            this.b = b;
    3636            startPattern = Pattern.compile(
    37                     "^(" + a + "|" + b + ")" + SEPARATOR,
     37                    "^(" + a + "|" + b + ")(" + SEPARATOR + "|$)",
    3838                    Pattern.CASE_INSENSITIVE);
    3939            endPattern = Pattern.compile(
     
    6868
    6969    @Override
    70     public Collection<Command> execute(Way way) throws UserCancelException {
     70    public Collection<Command> execute(Way oldway, Way way) throws UserCancelException {
    7171        Map<OsmPrimitive, List<TagCorrection>> tagCorrectionsMap =
    7272                new HashMap<OsmPrimitive, List<TagCorrection>>();
     
    113113        for (Relation relation : Main.ds.relations) {
    114114            for (RelationMember member : relation.members) {
    115                 if (!member.member.realEqual(way, true)
     115                if (!member.member.realEqual(oldway, true)
    116116                        || member.role.length() == 0)
    117117                    continue;
Note: See TracChangeset for help on using the changeset viewer.