Ignore:
Timestamp:
2011-02-13T10:30:28+01:00 (13 years ago)
Author:
bastiK
Message:

integrate wireframe into mappaint dialog; rename 'shortdescription' to 'title' (xml header key is unchanged)

File:
1 edited

Legend:

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

    r3893 r3894  
    4141    @Override
    4242    public void loadStyleSource() {
     43        init();
    4344        rules.clear();
    44         clearErrors();
    4545        try {
    4646            MapCSSParser parser = new MapCSSParser(getSourceInputStream(), "UTF-8");
     
    100100        }
    101101        Cascade c = mc.getCascade("default");
    102         String sd = c.get("title", null, String.class);
    103         if (sd != null) {
    104             this.shortdescription = sd;
     102        String pTitle = c.get("title", null, String.class);
     103        if (title == null) {
     104            title = pTitle;
     105        }
     106        String pIcon = c.get("icon", null, String.class);
     107        if (icon == null) {
     108            icon = pIcon;
    105109        }
    106110    }
Note: See TracChangeset for help on using the changeset viewer.