Changeset 6336 in josm for trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
- Timestamp:
- 2013-10-27T05:35:41+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r6333 r6336 62 62 */ 63 63 public static void zoomToSelection() { 64 if (Main.main == null || Main.main.getEditLayer() == null) return; 65 if (Main.map == null || Main.map.mapView == null) return; 64 if (Main.main == null || !Main.main.hasEditLayer()) return; 66 65 Collection<OsmPrimitive> sel = Main.main.getEditLayer().data.getSelected(); 67 66 if (sel.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.