Changeset 3717 in josm


Ignore:
Timestamp:
Dec 12, 2010 11:18:41 AM (2 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.