Changeset 7989 in josm
- Timestamp:
- 2015-01-27T21:33:31+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r7987 r7989 463 463 464 464 try { 465 // see #11026 - Because <ways> is a dynamic filtered (on ways) of a filtered (on selected objects) collection, 466 // retrieve effective dataset before joining the ways (which affects the selection, thus, the <ways> collection) 467 // Dataset retrieving allows to call this code without relying on Main.getCurrentDataSet(), thus, on a mapview instance 468 DataSet ds = ways.iterator().next().getDataSet(); 469 470 // Do the job of joining areas 465 471 JoinAreasResult result = joinAreas(areas); 466 472 … … 478 484 allWays.addAll(pol.innerWays); 479 485 } 480 DataSet ds = ways.iterator().next().getDataSet();481 486 if (ds != null) { 482 487 ds.setSelected(allWays);
Note:
See TracChangeset
for help on using the changeset viewer.