Ignore:
Timestamp:
2011-02-09T12:02:41+01:00 (13 years ago)
Author:
bastiK
Message:

mapcss: support for more exotic constructs; make parser more robust: if parsing as an expression fails, read everything between colon and semicolon as string, e.g. 'icon-image: images/img.png;' where the path should be in quotes, but it isn't

File:
1 edited

Legend:

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

    r3863 r3876  
    4949    }
    5050
    51     private ImageIcon pencil = ImageProvider.get("dialogs/mappaint", "pencil");
     51    private static ImageIcon pencil;
    5252
    5353    protected ImageIcon getSourceIcon() {
     54        if (pencil == null) {
     55            pencil = ImageProvider.get("dialogs/mappaint", "pencil");
     56        }
    5457        return pencil;
    5558    }
Note: See TracChangeset for help on using the changeset viewer.