Changeset 17358 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
- Timestamp:
- 2020-11-25T11:50:22+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
r17172 r17358 14 14 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 15 15 import org.openstreetmap.josm.tools.CheckParameterUtil; 16 import org.openstreetmap.josm.tools.Logging; 16 17 17 18 /** … … 71 72 * 72 73 * @param layer the data layer the relation is a member of 73 * @param r the relation to be edited 74 * @param r the relation to be edited. If the relation doesn't belong to a {@code DataSet} 75 * callers MUST NOT use the relation after calling this method. 74 76 * @param selectedMembers a collection of relation members which shall be selected when the editor is first launched 75 77 * @return an instance of RelationEditor suitable for editing that kind of relation … … 80 82 else { 81 83 RelationEditor editor = new GenericRelationEditor(layer, r, selectedMembers); 84 if (r != null && r.getDataSet() == null) { 85 // see #19885: We have to assume that the relation was only created as container for tags and members 86 // the editor has created its own copy by now. 87 // Since the members point to the container we unlink them here. 88 Logging.debug("Member list is reset for relation {0}", r.getUniqueId()); 89 r.setMembers(null); 90 } 91 82 92 RelationDialogManager.getRelationDialogManager().positionOnScreen(editor); 83 93 RelationDialogManager.getRelationDialogManager().register(layer, r, editor);
Note:
See TracChangeset
for help on using the changeset viewer.