Changeset 8952 in osm for applications/editors


Ignore:
Timestamp:
2008-07-12T17:00:26+02:00 (16 years ago)
Author:
gabriel
Message:

utilsplugin: simplify way: support simpl of multiple ways in a selection

Location:
applications/editors/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java

    r6157 r8952  
    3434        public void actionPerformed(ActionEvent e) {
    3535                Collection<OsmPrimitive> selection = Main.ds.getSelected();
    36 
    37                 if (selection.size() == 1 && selection.iterator().next() instanceof Way) {
    38                         simplifyWay((Way) selection.iterator().next());
     36               
     37                for (OsmPrimitive prim : selection) {
     38                        if (prim instanceof Way) {
     39                                simplifyWay((Way) prim);
     40                        }
    3941                }
    4042        }
Note: See TracChangeset for help on using the changeset viewer.