Changeset 18678 in osm for applications/editors/josm/plugins/remotecontrol/src
- Timestamp:
- 2009-11-18T20:46:28+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
r18417 r18678 211 211 new LatLon(maxlat, maxlon)); 212 212 213 Main.worker.execute(new Runnable() { 214 public void run() { 215 BoundingXYVisitor bbox = new BoundingXYVisitor(); 216 bbox.visit(bounds); 217 Main.map.mapView.recalculateCenterScale(bbox); 218 } 219 }); 213 // make sure this isn't called unless there *is* a MapView 214 // 215 if (Main.map != null && Main.map.mapView != null) { 216 Main.worker.execute(new Runnable() { 217 public void run() { 218 BoundingXYVisitor bbox = new BoundingXYVisitor(); 219 bbox.visit(bounds); 220 Main.map.mapView.recalculateCenterScale(bbox); 221 } 222 }); 223 } 220 224 } 221 225 } else if (command.equals("/add_node")) {
Note:
See TracChangeset
for help on using the changeset viewer.