Changeset 30133 in osm for applications
- Timestamp:
- 2013-12-17T16:30:53+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java
r29355 r30133 14 14 import java.util.HashMap; 15 15 import java.util.HashSet; 16 import java.util.LinkedList;17 16 import java.util.List; 18 17 import java.util.Map; … … 31 30 import org.openstreetmap.josm.data.Bounds; 32 31 import org.openstreetmap.josm.data.coor.LatLon; 33 import org.openstreetmap.josm.data.osm.DataSource;34 32 import org.openstreetmap.josm.data.osm.Node; 35 33 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 37 35 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 38 36 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 39 import org.openstreetmap.josm.gui.layer.OsmDataLayer;40 37 import org.openstreetmap.josm.tools.ImageProvider; 41 38 import org.openstreetmap.josm.tools.Shortcut; … … 52 49 53 50 54 55 51 private List<Bounds> getCurrentEditBounds() { 56 final LinkedList<Bounds> bounds = new LinkedList<Bounds>(); 57 final OsmDataLayer dataLayer = Main.map.mapView.getEditLayer(); 58 for (final DataSource ds : dataLayer.data.dataSources) { 59 if (ds.bounds != null) { 60 bounds.add(ds.bounds); 61 } 62 } 63 return bounds; 52 return Main.map.mapView.getEditLayer().data.getDataSourceBounds(); 64 53 } 65 54
Note:
See TracChangeset
for help on using the changeset viewer.