Changeset 16557 in josm
- Timestamp:
- 2020-06-07T15:42:48+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r16554 r16557 115 115 // to avoid EDT violations 116 116 SwingUtilities.invokeLater(() -> { 117 117 UndoRedoHandler.getInstance().add(command); 118 118 final Relation relation = (Relation) MainApplication.getLayerManager().getEditDataSet() 119 119 .getPrimitiveById(commandAndRelation.b); 120 if (relation == null || relation.getDataSet() == null) 121 return; // should not happen 120 122 121 123 // Use 'SwingUtilities.invokeLater' to make sure the relationListDialog … … 127 129 if (Config.getPref().getBoolean("multipoly.show-relation-editor", false)) { 128 130 //Open relation edit window, if set up in preferences 131 // see #19346 un-select updated multipolygon 132 MainApplication.getLayerManager().getEditDataSet().clearSelection(relation); 129 133 RelationEditor editor = RelationEditor 130 134 .getEditor(MainApplication.getLayerManager().getEditLayer(), relation, null); … … 133 137 } else { 134 138 MainApplication.getLayerManager().getEditLayer().setRecentRelation(relation); 139 if (multipolygonRelation == null) { 140 // see #19346 select new multipolygon 141 MainApplication.getLayerManager().getEditDataSet().setSelected(relation); 142 } 135 143 } 136 144 });
Note:
See TracChangeset
for help on using the changeset viewer.