Ignore:
Timestamp:
2013-11-23T14:21:45+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #9352 - find icon in presets for recent added tags if none is defined in map paint styles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r6326 r6403  
    123123        return group != null ? group.getRawName() + "/" + name : name;
    124124    }
    125 
    126     /*
     125   
     126    /**
     127     * Returns the preset icon.
     128     * @return The preset icon, or {@code null} if none defined
     129     * @since 6403
     130     */
     131    public final ImageIcon getIcon() {
     132        Object icon = getValue(Action.SMALL_ICON);
     133        if (icon instanceof ImageIcon) {
     134            return (ImageIcon) icon;
     135        }
     136        return null;
     137    }
     138
     139    /**
    127140     * Called from the XML parser to set the icon.
    128141     * This task is performed in the background in order to speedup startup.
     
    156169    }
    157170
    158     /*
     171    /**
    159172     * Called from the XML parser to set the types this preset affects.
    160173     */
Note: See TracChangeset for help on using the changeset viewer.