Changeset 16624 in osm for applications/editors/josm/plugins/remotecontrol/src
- Timestamp:
- 2009-07-21T20:40:31+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
r16589 r16624 148 148 149 149 // find out whether some data has already been downloaded 150 Area present = Main. ds.getDataSourceArea();150 Area present = Main.main.getCurrentDataSet().getDataSourceArea(); 151 151 if (present != null && !present.isEmpty()) { 152 152 Area toDownload = new Area(new Rectangle2D.Double(minlon,minlat,maxlon-minlon,maxlat-minlat)); … … 191 191 } 192 192 } 193 for (Way w : Main. ds.ways) if (ways.contains(w.id)) newSel.add(w);194 for (Node n : Main. ds.nodes) if (nodes.contains(n.id)) newSel.add(n);195 for (Relation r : Main. ds.relations) if (relations.contains(r.id)) newSel.add(r);196 Main. ds.setSelected(newSel);193 for (Way w : Main.main.getCurrentDataSet().ways) if (ways.contains(w.id)) newSel.add(w); 194 for (Node n : Main.main.getCurrentDataSet().nodes) if (nodes.contains(n.id)) newSel.add(n); 195 for (Relation r : Main.main.getCurrentDataSet().relations) if (relations.contains(r.id)) newSel.add(r); 196 Main.main.getCurrentDataSet().setSelected(newSel); 197 197 if (Main.pref.getBoolean("remotecontrol.permission.change-viewport", true)) 198 198 new AutoScaleAction("selection").actionPerformed(null);
Note:
See TracChangeset
for help on using the changeset viewer.