- Timestamp:
- 2022-04-19T22:29:22+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/IRelationEditorActionAccess.java
r18413 r18433 75 75 default IRelation<?> getChangedRelation() { 76 76 final Relation newRelation; 77 if (getEditor().getRelation() != null) { 78 newRelation = new Relation(getEditor().getRelation()); 77 final Relation oldRelation = getEditor().getRelation(); 78 if (oldRelation != null && oldRelation.getDataSet() != null && oldRelation.getDataSet().isLocked()) { 79 // If the dataset is locked, then we cannot change the relation. See JOSM #22024. 80 // This is due to the `setMembers` -> `addReferrer` call chain requires that the dataset is not read only. 81 return oldRelation; 82 } else if (oldRelation != null) { 83 newRelation = new Relation(oldRelation); 79 84 } else { 80 85 newRelation = new Relation();
Note:
See TracChangeset
for help on using the changeset viewer.