Changeset 3894 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
- Timestamp:
- 2011-02-13T10:30:28+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r3893 r3894 41 41 @Override 42 42 public void loadStyleSource() { 43 init(); 43 44 rules.clear(); 44 clearErrors();45 45 try { 46 46 MapCSSParser parser = new MapCSSParser(getSourceInputStream(), "UTF-8"); … … 100 100 } 101 101 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; 105 109 } 106 110 }
Note:
See TracChangeset
for help on using the changeset viewer.