Changeset 6075 in josm for trunk/src/org
- Timestamp:
- 2013-07-19T02:32:43+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
r6034 r6075 17 17 import org.openstreetmap.josm.gui.layer.GpxLayer; 18 18 import org.openstreetmap.josm.gui.layer.Layer; 19 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 19 20 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.MapPaintSylesUpdateListener; 20 21 import org.openstreetmap.josm.gui.util.StayOpenCheckBoxMenuItem; … … 64 65 @Override 65 66 public void updateEnabledState() { 66 setEnabled(Main.isDisplayingMapView() && (Main.main.getEditLayer() != null || mapHasGpx Layer()));67 setEnabled(Main.isDisplayingMapView() && (Main.main.getEditLayer() != null || mapHasGpxorMarkerLayer())); 67 68 } 68 69 69 private boolean mapHasGpx Layer() {70 private boolean mapHasGpxorMarkerLayer() { 70 71 for (Layer layer : Main.map.mapView.getAllLayers()) { 71 if (layer instanceof GpxLayer ) {72 if (layer instanceof GpxLayer || layer instanceof MarkerLayer) { 72 73 return true; 73 74 }
Note:
See TracChangeset
for help on using the changeset viewer.