Changeset 5866 in josm for trunk/src


Ignore:
Timestamp:
2013-04-15T01:40:02+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #8605 - Presets: Tags deleted when using Multiselect on an existing object with unknown value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r5795 r5866  
    10831083        protected Object getSelectedItem() {
    10841084            return list.getSelectedItem();
     1085        }
     1086
     1087        @Override
     1088        public void addCommands(List<Tag> changedTags) {
     1089            // Do not create any commands if list has been disabled because of an unknown value (fix #8605)
     1090            if (list.isEnabled()) {
     1091                super.addCommands(changedTags);
     1092            }
    10851093        }
    10861094    }
Note: See TracChangeset for help on using the changeset viewer.