Changeset 12487 in josm for trunk/src/org
- Timestamp:
- 2017-07-22T15:54:47+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r12486 r12487 284 284 Element parametersEl = doc.createElement("parameters"); 285 285 projectionChoiceEl.appendChild(parametersEl); 286 for (String param : parameters) { 287 Element paramEl = doc.createElement("param"); 288 parametersEl.appendChild(paramEl); 289 paramEl.setTextContent(param); 286 if (parameters != null) { 287 for (String param : parameters) { 288 Element paramEl = doc.createElement("param"); 289 parametersEl.appendChild(paramEl); 290 paramEl.setTextContent(param); 291 } 290 292 } 291 293 String code = Main.getProjection().toCode(); 292 Element codeEl = doc.createElement("code"); 293 projectionEl.appendChild(codeEl); 294 codeEl.setTextContent(code); 294 if (code != null) { 295 Element codeEl = doc.createElement("code"); 296 projectionEl.appendChild(codeEl); 297 codeEl.setTextContent(code); 298 } 295 299 } 296 300
Note:
See TracChangeset
for help on using the changeset viewer.