Changeset 17557 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2021-03-08T20:48:34+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #20571 - strip leading/trailing whitespace from roles entered in property panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/RelationRoleEditor.java

    r17215 r17557  
    4646        }
    4747        final List<RelationMember> newMembers = relation.getMembers();
    48         newMembers.replaceAll(m -> members.contains(m) ? new RelationMember(newRole, m.getMember()) : m);
     48        newMembers.replaceAll(m -> members.contains(m) ? new RelationMember(Utils.strip(newRole), m.getMember()) : m);
    4949        UndoRedoHandler.getInstance().add(new ChangeMembersCommand(relation, newMembers));
    5050    }
Note: See TracChangeset for help on using the changeset viewer.