Changeset 16792 in josm for trunk/src/org


Ignore:
Timestamp:
2020-07-18T00:43:51+02:00 (4 years ago)
Author:
simon04
Message:

fix #19496 - ImageProvider.getPadded: deprioritize multipolygon icon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r16764 r16792  
    16001600        if (primitive.isTagged() && (!options.contains(GetPaddedOptions.NO_WAY_PRESETS) || OsmPrimitiveType.WAY != primitive.getType())) {
    16011601            final Optional<ImageIcon> icon = TaggingPresets.getMatchingPresets(primitive).stream()
    1602                     .sorted(Comparator.comparing(p -> p.types == null || p.types.isEmpty() ? Integer.MAX_VALUE : p.types.size()))
     1602                    .sorted(Comparator.comparing(p ->
     1603                            p.iconName.contains("multipolygon") || p.types == null || p.types.isEmpty() ? Integer.MAX_VALUE : p.types.size()))
    16031604                    .map(TaggingPreset::getImageResource)
    16041605                    .filter(Objects::nonNull)
Note: See TracChangeset for help on using the changeset viewer.