Changeset 36009 in osm for applications/editors/josm/plugins/turnrestrictions
- Timestamp:
- 2022-07-18T15:21:16+02:00 (2 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java
r34567 r36009 769 769 public void actionPerformed(ActionEvent e) { 770 770 Relation tr = getTurnRestriction(); 771 if (tr == null || tr.getDataSet() == null ) return;771 if (tr == null || tr.getDataSet() == null || tr.isDeleted()) return; 772 772 org.openstreetmap.josm.actions.mapmode.DeleteAction.deleteRelation( 773 773 getLayer(), -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsListDialog.java
r34643 r36009 270 270 271 271 protected void deleteRelation(Relation toDelete) { 272 if (toDelete == null )272 if (toDelete == null || toDelete.getDataSet() == null || toDelete.isDeleted()) 273 273 return; 274 274 org.openstreetmap.josm.actions.mapmode.DeleteAction.deleteRelation(
Note:
See TracChangeset
for help on using the changeset viewer.