Ignore:
Timestamp:
2012-03-21T22:55:58+01:00 (12 years ago)
Author:
simon04
Message:

fix #7522 - fix "Fatal: failed to locate image" in MapPaintMenu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java

    r5088 r5110  
    2424
    2525        public MapPaintAction(StyleSource style) {
    26             super(style.getDisplayString(), style.icon,
    27                     tr("Select the map painting styles"), null, style.icon != null);
    28             if (style.icon == null) {
    29                 putValue("toolbar", "mappaint/" + style.getDisplayString());
    30                 Main.toolbar.register(this);
    31             }
     26            super(style.getDisplayString(), ImageProvider.getIfAvailable(style.icon),
     27                    tr("Select the map painting styles"), null, true, "mappaint/" + style.getDisplayString(), true);
    3228            this.button = new StayOpenCheckBoxMenuItem(this);
    3329            this.style = style;
Note: See TracChangeset for help on using the changeset viewer.