Ignore:
Timestamp:
2009-11-21T01:14:05+01:00 (16 years ago)
Author:
pieren
Message:

Improve autosourcing. Add history.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java

    r18544 r18722  
    4242            Collection<OsmPrimitive> sel = new HashSet<OsmPrimitive>();
    4343            for (OsmPrimitive osm : apiDataSet.getPrimitivesToAdd()) {
    44                 if ((osm instanceof Node || osm instanceof Way)
    45                         && (osm.getKeys() == null || !tagSourceExist(osm))) {
     44                if ((osm instanceof Way && (osm.getKeys().size() == 0 || !tagSourceExist(osm)))
     45                 || (osm instanceof Node && osm.getKeys().size() > 0 && !tagSourceExist(osm))) {
    4646                    sel.add(osm);
    4747                }
Note: See TracChangeset for help on using the changeset viewer.