Changeset 15439 in josm
- Timestamp:
- 2019-10-07T18:54:31+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.java
r15326 r15439 54 54 import org.openstreetmap.josm.io.imagery.ImageryReader; 55 55 import org.openstreetmap.josm.spi.preferences.Config; 56 import org.openstreetmap.josm.tools.ImageProvider; 56 57 import org.openstreetmap.josm.tools.Logging; 57 58 import org.openstreetmap.josm.tools.OptionParser; … … 1081 1082 urls.add(jt); 1082 1083 jt = getIcon(j); 1083 if (isNotBlank(jt) && !jt.startsWith("data:image/")) 1084 urls.add(jt); 1084 if (isNotBlank(jt)) { 1085 if(!jt.startsWith("data:image/")) 1086 urls.add(jt); 1087 else { 1088 try 1089 { 1090 new ImageProvider(jt).get(); 1091 } catch(Exception e) { 1092 myprintln("* Strange Icon: "+getDescription(j)); 1093 } 1094 } 1095 } 1085 1096 Pattern patternU = Pattern.compile("^https?://([^/]+?)(:\\d+)?(/.*)?"); 1086 1097 for (String u : urls) {
Note:
See TracChangeset
for help on using the changeset viewer.