Changeset 2589 in josm
- Timestamp:
- 2009-12-06T15:20:08+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r2578 r2589 459 459 ArrayList<RelationRole> result = new ArrayList<RelationRole>(); 460 460 for (Relation r : Main.main.getCurrentDataSet().getRelations()) { 461 if (r.isDeleted() || r.isIncomplete()) {461 if (r.isDeleted()) 462 462 continue; 463 }464 463 for (RelationMember rm : r.getMembers()) { 465 464 if (rm.getMember() != osm) { -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r2578 r2589 90 90 int count = 0; 91 91 for (Way w : OsmPrimitive.getFilteredList(n.getReferrers(), Way.class)) { 92 if ( w.isDeleted() || w.isIncomplete()) {92 if (!w.isUsable()) 93 93 continue; 94 }95 94 count++; 96 95 } … … 308 307 HashSet<String> rolesToReAdd = null; 309 308 for (Relation r : OsmPrimitive.getFilteredList(originalNode.getReferrers(), Relation.class)) { 310 if (r.isDeleted() || r.isIncomplete()) {309 if (r.isDeleted()) 311 310 continue; 312 }313 311 newRel = null; 314 312 rolesToReAdd = null; -
trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
r2587 r2589 145 145 if (myWay == null) 146 146 throw new RuntimeException(tr("Missing merge target for way with id {0}", other.getUniqueId())); 147 if (!myWay.isIncomplete())return; 148 if (myWay.isIncomplete() && other.getNodesCount() == 0) return; 147 if (!myWay.isIncomplete() || other.getNodesCount() == 0) return; 149 148 for (Node n: myWay.getNodes()) { 150 149 if (n.isIncomplete()) return; … … 154 153 155 154 /** 156 * A way in the target dataset might be incomplete because at least o fof its nodes is incomplete.157 * The nodes might have become complete because a complete node was merged ontointo in the155 * A way in the target dataset might be incomplete because at least one of its nodes is incomplete. 156 * The nodes might have become complete because a complete node was merged into in the 158 157 * merge operation. 159 * 158 * 160 159 * This method loops over all parent ways of such nodes and turns them into complete ways 161 160 * if necessary. 162 * 161 * 163 162 * @param other 164 163 */
Note:
See TracChangeset
for help on using the changeset viewer.