Changeset 15896 in josm


Ignore:
Timestamp:
2020-02-22T13:50:07+01:00 (6 weeks ago)
Author:
simon04
Message:

see #14088 - Optimize ImageProvider.getPadded for untagged primitives

File:
1 edited

Legend:

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

    r15895 r15896  
    15471547
    15481548        // Check if the presets have icons for nodes/relations.
    1549         if (!options.contains(GetPaddedOptions.NO_WAY_PRESETS) || OsmPrimitiveType.WAY != primitive.getType()) {
     1549        if (primitive.isTagged() && (!options.contains(GetPaddedOptions.NO_WAY_PRESETS) || OsmPrimitiveType.WAY != primitive.getType())) {
    15501550            final Optional<ImageIcon> icon = TaggingPresets.getMatchingPresets(primitive).stream()
    15511551                    .sorted(Comparator.comparing(p -> p.types == null || p.types.isEmpty() ? Integer.MAX_VALUE : p.types.size()))
Note: See TracChangeset for help on using the changeset viewer.