- Timestamp:
- 2020-11-29T10:57:33+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/SplitWayCommand.java
r17367 r17375 467 467 if (rValue.warnme) warnings.add(WarningType.GENERIC); 468 468 insert = rValue.insert; 469 c = rValue.relation; 469 c = rValue.relation; // Value.relation is null or contains a modified copy 470 470 } else if (!isOrderedRelation) { 471 471 // Warn the user when relations that are not a route or multipolygon are modified as a result … … 473 473 warnings.add(WarningType.GENERIC); 474 474 } 475 if (c == null) {476 c = new Relation(r);477 }478 475 479 476 if (insert) { 477 if (c == null) { 478 c = new Relation(r); 479 } 480 480 if (rm.hasRole() && !nowarnroles.contains(rm.getRole())) { 481 481 warnings.add(WarningType.ROLE); … … 818 818 c.addMember(new RelationMember(role, res)); 819 819 c.removeMembersFor(way); 820 relationInformation.insert = false;821 820 } 822 } else {823 relationInformation.insert = false;824 821 } 825 822 } else if (!"via".equals(role)) { 826 823 relationInformation.warnme = true; 824 } else { 825 relationInformation.insert = true; 827 826 } 828 827 relationInformation.relation = c;
Note:
See TracChangeset
for help on using the changeset viewer.