Changeset 5666 in josm for trunk/src/org


Ignore:
Timestamp:
2013-01-17T18:14:25+01:00 (12 years ago)
Author:
simon04
Message:

fix #8360 - designated icons for adding WMS/TMS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r5631 r5666  
    424424                putValue(NAME, type.toString());
    425425                putValue(SHORT_DESCRIPTION, tr("Add a new {0} entry by entering the URL", type.toString()));
    426                 putValue(SMALL_ICON, ImageProvider.get("dialogs", "add"));
     426                putValue(SMALL_ICON, ImageProvider.get("dialogs",
     427                            "add" + (ImageryInfo.ImageryType.WMS.equals(type) ? "_wms" : ImageryInfo.ImageryType.TMS.equals(type) ? "_tms" : "")));
    427428                this.type = type;
    428429            }
Note: See TracChangeset for help on using the changeset viewer.