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


Ignore:
Timestamp:
2010-10-03T11:37:46+02:00 (14 years ago)
Author:
jttt
Message:

Fix handling of tagging preset required attribute, use required attribute in Bridge preset

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

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

    r3518 r3581  
    120120                            key = ((Check)i).key;
    121121                        }
    122                         if (key != null && valueCount.get(key) == null) {
    123                             found -= 100;
     122                        if (key != null) {
     123                            if (valueCount.get(key) != null) {
     124                                found += 1;
     125                            } else {
     126                                found -= 100;
     127                            }
    124128                        }
    125129                    }
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSearchDialog.java

    r3568 r3581  
    176176                return result;
    177177        }
     178
     179        @Override
     180        public String toString() {
     181            return classification + " " + preset.toString();
     182        }
    178183    }
    179184
Note: See TracChangeset for help on using the changeset viewer.