- Timestamp:
- 2010-02-21T13:21:46+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r3025 r3032 7 7 import java.util.Set; 8 8 9 import org.openstreetmap.josm.Main; 9 10 import org.openstreetmap.josm.data.osm.visitor.Visitor; 10 11 import org.openstreetmap.josm.tools.CopyList; … … 382 383 throw new DataIntegrityProblemException(String.format("Relation member must be part of the same dataset as relation(%s, %s)", getPrimitiveId(), rm.getMember().getPrimitiveId())); 383 384 } 385 if (Main.pref.getBoolean("debug.checkDeleteReferenced")) { 386 for (RelationMember rm: members) { 387 if (rm.getMember().isDeleted()) 388 throw new DataIntegrityProblemException("Deleted member referenced: " + toString()); 389 } 390 } 384 391 } 385 392 } -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r2970 r3032 9 9 import java.util.List; 10 10 11 import org.openstreetmap.josm.Main; 11 12 import org.openstreetmap.josm.data.osm.visitor.Visitor; 12 13 import org.openstreetmap.josm.tools.CopyList; … … 371 372 throw new DataIntegrityProblemException("Nodes in way must be in the same dataset"); 372 373 } 374 if (Main.pref.getBoolean("debug.checkDeleteReferenced")) { 375 for (Node n: nodes) { 376 if (n.isDeleted()) 377 throw new DataIntegrityProblemException("Deleted node referenced: " + toString()); 378 } 379 } 373 380 } 374 381 }
Note:
See TracChangeset
for help on using the changeset viewer.