Changeset 1600 in josm for trunk/src/org
- Timestamp:
- 2009-05-19T18:43:02+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r1523 r1600 267 267 for (Relation r : Main.ds.relations) { 268 268 if (r.deleted || r.incomplete) continue; 269 Relation c = null; 270 int i = 0; 271 269 272 for (RelationMember rm : r.members) { 270 273 if (rm.member instanceof Way) { 271 274 if (rm.member == selectedWay) 272 275 { 273 Relation c = new Relation(r); 276 if (c == null) 277 c = new Relation(r); 278 274 279 for(Way wayToAdd : newWays) 275 280 { … … 279 284 if(em.role.length() > 0) 280 285 warnme = true; 281 c.members.add(em); 286 287 i++; 288 c.members.add(i, em); 282 289 } 283 commandList.add(new ChangeCommand(r, c));284 break;285 290 } 286 291 } 287 } 292 i++; 293 } 294 295 if (c != null) 296 commandList.add(new ChangeCommand(r, c)); 288 297 } 289 298 if(warnme) -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r1589 r1600 306 306 307 307 if (data.attr.containsKey("name")) 308 info.append(tr("Name: {0}", data.attr.get( "name"))).append("<br>");308 info.append(tr("Name: {0}", data.attr.get(data.META_NAME))).append("<br>"); 309 309 310 310 if (data.attr.containsKey("desc")) 311 info.append(tr("Description: {0}", data.attr.get( "desc"))).append("<br>");311 info.append(tr("Description: {0}", data.attr.get(data.META_DESC))).append("<br>"); 312 312 313 313 if(data.tracks.size() > 0){
Note:
See TracChangeset
for help on using the changeset viewer.