Changeset 11684 in josm for trunk/src/org
- Timestamp:
- 2017-03-05T02:38:09+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/relation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java
r11339 r11684 13 13 import java.util.TreeSet; 14 14 import java.util.concurrent.CopyOnWriteArrayList; 15 import java.util.stream.Collectors; 15 16 16 17 import javax.swing.DefaultListSelectionModel; … … 357 358 */ 358 359 public void applyToRelation(Relation relation) { 359 relation.setMembers(members); 360 relation.setMembers(members.stream() 361 .filter(rm -> !rm.getMember().isDeleted()).collect(Collectors.toList())); 360 362 } 361 363 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SavingAction.java
r11120 r11684 105 105 tagEditorModel.applyToPrimitive(editedRelation); 106 106 memberTableModel.applyToRelation(editedRelation); 107 Main.main.undoRedo.add(new ChangeCommand(editor.getRelation(), editedRelation)); 108 layer.data.fireSelectionChanged(); 107 if (!editedRelation.hasEqualSemanticAttributes(editor.getRelation(), false)) { 108 Main.main.undoRedo.add(new ChangeCommand(editor.getRelation(), editedRelation)); 109 layer.data.fireSelectionChanged(); 110 } 109 111 } 110 112
Note:
See TracChangeset
for help on using the changeset viewer.