Changeset 2343 in josm for trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
- Timestamp:
- 2009-10-28T20:14:07+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r2323 r2343 33 33 34 34 protected GpxLayer getLayer() { 35 if (Main.map == null) return null; 36 if (Main.map.mapView == null) return null; 35 if (!Main.isDisplayingMapView()) return null; 37 36 if (Main.map.mapView.getActiveLayer() == null) return null; 38 37 Layer layer = Main.map.mapView.getActiveLayer(); … … 95 94 @Override 96 95 protected void updateEnabledState() { 97 boolean check = Main.main != null 98 && Main.map != null 99 && Main.map.mapView !=null 96 boolean check = 97 Main.isDisplayingMapView() 100 98 && Main.map.mapView.getActiveLayer() != null; 101 99 if(!check) {
Note:
See TracChangeset
for help on using the changeset viewer.