- Timestamp:
- 2010-05-15T15:15:51+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r2986 r3251 57 57 return; 58 58 } 59 zoomTo(sel); 60 } 61 62 public static void zoomTo(Collection<OsmPrimitive> sel) { 59 63 BoundingXYVisitor bboxCalculator = new BoundingXYVisitor(); 60 64 bboxCalculator.computeBoundingBox(sel); -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadPrimitiveTask.java
r3083 r3251 10 10 import javax.swing.SwingUtilities; 11 11 12 import org.openstreetmap.josm.actions.AutoScaleAction; 12 13 import org.openstreetmap.josm.data.osm.DataSet; 13 14 import org.openstreetmap.josm.data.osm.PrimitiveId; … … 69 70 layer.mergeFrom(ds); 70 71 layer.onPostDownloadFromServer(); 72 AutoScaleAction.zoomTo(ds.allPrimitives()); 71 73 } 72 74 };
Note:
See TracChangeset
for help on using the changeset viewer.