Changeset 11421 in josm for trunk


Ignore:
Timestamp:
2016-12-31T00:04:03+01:00 (2 years ago)
Author:
stoecker
Message:

fix #13919 - image size mismatch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r9572 r11421  
    5555    public MapMode(String name, String iconName, String tooltip, MapFrame mapFrame, Cursor cursor) {
    5656        putValue(NAME, name);
    57         putValue(SMALL_ICON, ImageProvider.get("mapmode", iconName));
     57        new ImageProvider("mapmode", iconName).getResource().attachImageIcon(this);
    5858        putValue(SHORT_DESCRIPTION, tooltip);
    5959        this.cursor = cursor;
Note: See TracChangeset for help on using the changeset viewer.