Changeset 29637 in osm for applications/editors/josm
- Timestamp:
- 2013-06-07T00:51:31+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java
r29635 r29637 26 26 import org.openstreetmap.josm.data.Bounds; 27 27 import org.openstreetmap.josm.data.coor.LatLon; 28 import org.openstreetmap.josm.data.osm.DataSet; 28 29 import org.openstreetmap.josm.data.osm.Node; 29 30 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 53 54 @Override 54 55 public void actionPerformed(ActionEvent e) { 56 DataSet ds = Main.main.getCurrentDataSet(); 57 if (ds == null) { 58 return; 59 } 60 55 61 // get all stuff visible on screen 56 62 LatLon bottomLeft = Main.map.mapView.getLatLon(0,Main.map.mapView.getHeight()); … … 73 79 // Write nodes, make list of ways and relations 74 80 Set<OsmPrimitive> parents = new HashSet<OsmPrimitive>(); 75 for (Node n : Main.main.getCurrentDataSet().getNodes()) {81 for (Node n : ds.getNodes()) { 76 82 if (n.isUsable() && n.getCoor().isWithin(b)) { 77 83 parents.addAll(n.getReferrers());
Note:
See TracChangeset
for help on using the changeset viewer.