Index: applications/editors/josm/plugins/imageryadjust/build.xml
===================================================================
--- applications/editors/josm/plugins/imageryadjust/build.xml	(revision 27493)
+++ applications/editors/josm/plugins/imageryadjust/build.xml	(revision 27494)
@@ -30,7 +30,7 @@
 <project name="imageryadjust" default="dist" basedir=".">
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message"/>
+    <property name="commit.message" value="ImageryAdjust: show visible layers only"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="4549"/>
+    <property name="plugin.main.version" value="4667"/>
     <!--
       ************************************************
Index: applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustMapMode.java
===================================================================
--- applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustMapMode.java	(revision 27493)
+++ applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustMapMode.java	(revision 27494)
@@ -9,4 +9,6 @@
 import java.awt.event.MouseListener;
 import java.awt.event.MouseMotionListener;
+import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
 
@@ -40,5 +42,14 @@
                 ImageProvider.getCursor("normal", "move"));
     }
-
+    
+    private List<? extends Layer> getVisibleLayers() {
+        List<? extends Layer> all = new ArrayList<Layer>(Main.map.mapView.getLayersOfType(ImageryLayer.class));
+        Iterator<? extends Layer> it = all.iterator();
+        while (it.hasNext()) {
+            if (!it.next().isVisible()) it.remove();
+        }
+        return all;
+    }
+    
     @Override public void enterMode() {
         super.enterMode();
@@ -51,5 +62,5 @@
             adjustingLayer = layers.get(0);
         } else {
-            adjustingLayer = (ImageryLayer)askAdjustLayer(Main.map.mapView.getLayersOfType(ImageryLayer.class));
+            adjustingLayer = (ImageryLayer)askAdjustLayer(getVisibleLayers());
         }
         if (adjustingLayer == null)
