Ignore:
Timestamp:
2019-01-06T13:17:37+01:00 (5 years ago)
Author:
simon04
Message:

fix #16874 – Keep the id on the POI if unglueing

When unglueing a node from a way, retain the history on the node which gets assigned the tags.

File:
1 edited

Legend:

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

    r14652 r14653  
    3131    private final transient ExistingBothNewChoice memberships;
    3232
     33    /**
     34     * Represents the user choice: the existing node, the new nodes, or all of them
     35     */
    3336    public enum ExistingBothNew {
    34         OLD, BOTH, NEW
     37        OLD, BOTH, NEW;
     38
     39        /**
     40         * Returns the opposite/inverted user choice.
     41         * @return the opposite/inverted user choice
     42         */
     43        public ExistingBothNew opposite() {
     44            return equals(OLD) ? NEW : equals(NEW) ? OLD : this;
     45        }
    3546    }
    3647
Note: See TracChangeset for help on using the changeset viewer.