Changeset 9564 in josm for trunk


Ignore:
Timestamp:
2016-01-22T12:05:30+01:00 (5 years ago)
Author:
bastiK
Message:

fixed #12419 - the "add tag window" on 9563 shows too many entries (patch by kolesar)

File:
1 edited

Legend:

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

    r9502 r9564  
    715715
    716716        protected void suggestRecentlyAddedTags(JPanel mainPanel, final FocusAdapter focus) {
    717             final int tagsToShow = Math.max(PROPERTY_RECENT_TAGS_NUMBER.get(), MAX_LRU_TAGS_NUMBER);
     717            final int tagsToShow = Math.min(PROPERTY_RECENT_TAGS_NUMBER.get(), MAX_LRU_TAGS_NUMBER);
    718718            if (!(tagsToShow > 0 && !recentTags.isEmpty()))
    719719                return;
Note: See TracChangeset for help on using the changeset viewer.