Changeset 5141 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-03-31T12:40:37+02:00 (12 years ago)
Author:
simon04
Message:

fix #7527 - View → Map Paint Styles gives ArrayOutOfBounds if MapStyles were changed/updated

File:
1 edited

Legend:

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

    r5110 r5141  
    4949        }
    5050
     51        public void setStyle(StyleSource style) {
     52            this.style = style;
     53        }
     54
    5155        @Override
    5256        public void updateEnabledState() {
     
    7882                add(a.getButton());
    7983            } else {
     84                a.setStyle(style);
    8085                add(a.getButton());
    8186                a.updateButton();
Note: See TracChangeset for help on using the changeset viewer.