- Timestamp:
- 2017-03-30T21:00:13+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r11374 r11795 248 248 for (Layer depLayer : deps) { 249 249 int depIndex = layers.indexOf(depLayer); 250 if (depIndex == -1) 251 throw new AssertionError(); 252 depsInt.add(depIndex+1); 250 if (depIndex == -1) { 251 Main.warn("Unable to find " + depLayer); 252 } else { 253 depsInt.add(depIndex+1); 254 } 253 255 } 254 el.setAttribute("depends", Utils.join(",", depsInt)); 256 if (!depsInt.isEmpty()) { 257 el.setAttribute("depends", Utils.join(",", depsInt)); 258 } 255 259 } 256 260 layersEl.appendChild(el);
Note:
See TracChangeset
for help on using the changeset viewer.