Changeset 8406 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2015-05-21T02:19:24+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r8385 r8406 201 201 return null; //could not make multipolygon. 202 202 } else { 203 return Pair.create(selectedMultipolygonRelation, createRelation(polygon, new Relation(selectedMultipolygonRelation)));203 return Pair.create(selectedMultipolygonRelation, createRelation(polygon, selectedMultipolygonRelation)); 204 204 } 205 205 } … … 214 214 return null; //could not make multipolygon. 215 215 } else { 216 return Pair.create(null, createRelation(polygon, n ew Relation()));216 return Pair.create(null, createRelation(polygon, null)); 217 217 } 218 218 } … … 302 302 * @return multipolygon relation 303 303 */ 304 private static Relation createRelation(MultipolygonBuilder pol, finalRelationrel) {304 private static Relation createRelation(MultipolygonBuilder pol, Relation clone) { 305 305 // Create new relation 306 Relation rel = clone != null ? new Relation(clone) : new Relation(); 306 307 rel.put("type", "multipolygon"); 307 308 // Add ways to it
Note:
See TracChangeset
for help on using the changeset viewer.