Changeset 8582 in josm for trunk/src/org
- Timestamp:
- 2015-07-08T13:30:32+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r8576 r8582 122 122 tree.getSelectedLayers(), (String) formats.getSelectedItem()); 123 123 Set<String> supportedCrs = new HashSet<>(); 124 { 125 boolean first = true; 126 for(LayerDetails layer: tree.getSelectedLayers()) { 127 if (first) { 128 supportedCrs.addAll(layer.getProjections()); 129 first = false; 130 } 131 supportedCrs.retainAll(layer.getProjections()); 124 boolean first = true; 125 for (LayerDetails layer: tree.getSelectedLayers()) { 126 if (first) { 127 supportedCrs.addAll(layer.getProjections()); 128 first = false; 132 129 } 130 supportedCrs.retainAll(layer.getProjections()); 133 131 } 134 132 ImageryInfo ret = new ImageryInfo(info.getName(), url, "wms", info.getEulaAcceptanceRequired(), info.getCookies()); -
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r8574 r8582 655 655 public final Collection<String> keySet() { 656 656 final String[] keys = this.keys; 657 if (keys == null) {657 if (keys == null) { 658 658 return Collections.emptySet(); 659 659 } 660 if (keys.length == 1) {660 if (keys.length == 1) { 661 661 return Collections.singleton(keys[0]); 662 662 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r8575 r8582 130 130 osm.mappaintStyle = style.put(p.a, p.b); 131 131 } catch (StyleCache.RangeViolatedError e) { 132 throw new AssertionError("Range violated: " + e.getMessage() + " (object: " + osm.getPrimitiveId() + ", current style: "+osm.mappaintStyle 132 throw new AssertionError("Range violated: " + e.getMessage() 133 + " (object: " + osm.getPrimitiveId() + ", current style: "+osm.mappaintStyle 133 134 + ", scale: " + scale + ", new stylelist: " + p.a + ", new range: " + p.b + ")", e); 134 135 } -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r8574 r8582 439 439 String time = parser.getAttributeValue(null, "timestamp"); 440 440 if (time != null && !time.isEmpty()) { 441 current.setRawTimestamp((int) (DateUtils.tsFromString(time)/1000));441 current.setRawTimestamp((int) (DateUtils.tsFromString(time)/1000)); 442 442 } 443 443 -
trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java
r8574 r8582 108 108 parsePart2(str, 17)); 109 109 long millis = parsePart3(str, 20); 110 if (str.length() == 29) {110 if (str.length() == 29) { 111 111 millis += parsePart2(str, 24) * (str.charAt(23) == '+' ? -3600000 : 3600000); 112 112 }
Note:
See TracChangeset
for help on using the changeset viewer.