Changeset 4724 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2011-12-27T16:31:36+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r3851 r4724 45 45 { 46 46 return tr("Remote Control has been asked to load data from the API.") + 47 "<br>" + tr("Request details: {0}", request);47 "<br>" + tr("Request details: {0}", request); 48 48 } 49 49 … … 81 81 Area toDownload = null; 82 82 DataSet ds = Main.main.getCurrentDataSet(); 83 if (ds != null) 83 if (ds != null) { 84 84 present = ds.getDataSourceArea(); 85 } 85 86 if (present != null && !present.isEmpty()) { 86 87 toDownload = new Area(new Rectangle2D.Double(minlon,minlat,maxlon-minlon,maxlat-minlat)); … … 168 169 } 169 170 ds.setSelected(newSel); 170 if (Main.pref.getBoolean(changeViewportPermissionKey, changeViewportPermissionDefault)) 171 if (Main.pref.getBoolean(changeViewportPermissionKey, changeViewportPermissionDefault)) { 171 172 new AutoScaleAction("selection").actionPerformed(null); 173 } 172 174 } 173 175 }); … … 189 191 tags = URLDecoder.decode(args.get("addtags"), "UTF-8").split("\\|"); 190 192 } catch (UnsupportedEncodingException e) { 191 new RuntimeException();193 throw new RuntimeException(); 192 194 } 193 195 String[][] keyValue = new String[tags.length][2];
Note:
See TracChangeset
for help on using the changeset viewer.