Ticket #12419: PropertyRecentTagsNumber.patch

File PropertyRecentTagsNumber.patch, 782 bytes (added by kolesar, 4 years ago)
  • src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    diff --git a/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java b/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
    index 46afd75..6e3d843 100644
    a b public class TagEditHelper { 
    714714        }
    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;
    720720