Changeset 36213 in osm for applications/editors/josm/plugins/reltoolbox
- Timestamp:
- 2024-02-27T07:26:35+01:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java
r36102 r36213 41 41 */ 42 42 public class ChosenRelation implements ActiveLayerChangeListener, MapViewPaintable, DataSetListener { 43 protected Relation chosenRelation = null;43 protected Relation chosenRelation; 44 44 private final Set<ChosenRelationListener> chosenRelationListeners = new HashSet<>(); 45 45 … … 162 162 for (OsmPrimitive element : rel.getMemberPrimitives()) { 163 163 if (null != element.getType()) { 164 switch (element.getType()) {164 switch (element.getType()) { 165 165 case NODE: 166 166 Node node = (Node) element; … … 212 212 public void dataChanged(DataChangedEvent event) { 213 213 if (chosenRelation != null) { 214 fireRelationChanged(chosenRelation); 214 if (chosenRelation.getDataSet() == null) 215 clear(); 216 else 217 fireRelationChanged(chosenRelation); 215 218 } 216 219 }
Note:
See TracChangeset
for help on using the changeset viewer.