Changeset 481 in josm for trunk/src/org


Ignore:
Timestamp:
2007-12-02T18:12:44+01:00 (16 years ago)
Author:
gebner
Message:

Oops. Or-expressions do short-circuiting, so you'd better not reverse the
order of their arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/MergeVisitor.java

    r479 r481  
    6363                // 2. Try to find a prim we can merge with the prim from the other ds.
    6464                for (P my : myprims) {
    65                         if (!mergeprims.contains(my)) { // This checks for id equality.
    66                                 continue;
    67                         }
    68 
    69                         if (match(my, other)) {
     65                        // LinkedList.contains calls equal, and OsmPrimitive.equal
     66                        // compares just the id.
     67                        if (match(my, other) && !mergeprims.contains(my)) {
    7068                                merged.put(other, my);
    7169                                mergeCommon(my, other);
Note: See TracChangeset for help on using the changeset viewer.