Ticket #20163: 20163.patch
File 20163.patch, 1.7 KB (added by , 3 years ago) |
---|
-
src/org/openstreetmap/josm/command/SplitWayCommand.java
466 466 RelationInformation rValue = treatAsRestriction(r, rm, c, newWays, way, changedWayNodes); 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 472 472 // of splitting up the way, because we can't tell if this might break anything. 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); 482 482 } … … 824 824 } 825 825 } else if (!"via".equals(role)) { 826 826 relationInformation.warnme = true; 827 } else { 828 relationInformation.insert = true; 827 829 } 828 830 relationInformation.relation = c; 829 831 return relationInformation;