Ignore:
Timestamp:
2010-05-15T20:50:55+02:00 (14 years ago)
Author:
jttt
Message:

Check complete nodes with null coordinates are not added to the way

File:
1 edited

Legend:

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

    r3153 r3254  
    371371                if (n.getDataSet() != dataSet)
    372372                    throw new DataIntegrityProblemException("Nodes in way must be in the same dataset");
    373             }
    374             if (Main.pref.getBoolean("debug.checkDeleteReferenced", true)) {
     373                if (n.isDeleted())
     374                    throw new DataIntegrityProblemException("Deleted node referenced: " + toString());
     375            }
     376            if (Main.pref.getBoolean("debug.checkNullCoor", true)) {
    375377                for (Node n: nodes) {
    376                     if (n.isDeleted())
    377                         throw new DataIntegrityProblemException("Deleted node referenced: " + toString());
     378                    if (!n.isIncomplete() && (n.getCoor() == null || n.getEastNorth() == null))
     379                        throw new DataIntegrityProblemException("Complete node with null coordinates: " + toString() + n.get3892DebugInfo());
    378380                }
    379381            }
Note: See TracChangeset for help on using the changeset viewer.