Changeset 3717 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-12-12T11:18:41+01:00 (11 years ago)
Author:
bastiK
Message:

fixed #5728 (patch by Larry0ua) - Rectifying newly-merged polygons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r3683 r3717  
    373373            if (result.hasChanges) {
    374374
     375                List<Way> allWays = new ArrayList<Way>();
     376                for (Multipolygon pol : result.polygons) {
     377                    allWays.add(pol.outerWay);
     378                    allWays.addAll(pol.innerWays);
     379                }
     380                DataSet ds = Main.main.getCurrentDataSet();
     381                ds.setSelected(allWays);
    375382                Main.map.mapView.repaint();
    376                 DataSet ds = Main.main.getCurrentDataSet();
    377                 ds.fireSelectionChanged();
    378383            } else {
    379384                JOptionPane.showMessageDialog(Main.parent, tr("No intersection found. Nothing was changed."));
Note: See TracChangeset for help on using the changeset viewer.