Changeset 3140 in josm for trunk/src


Ignore:
Timestamp:
2010-03-15T21:21:22+01:00 (10 years ago)
Author:
jttt
Message:

Fix #4597: search does not find id:0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r3046 r3140  
    127127        }
    128128        @Override public boolean match(OsmPrimitive osm) {
    129             return osm.getUniqueId() == id;
     129            return id == 0?osm.isNew():osm.getUniqueId() == id;
    130130        }
    131131        @Override public String toString() {return "id="+id;}
Note: See TracChangeset for help on using the changeset viewer.