Index: /applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java
===================================================================
--- /applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java	(revision 36532)
+++ /applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java	(revision 36533)
@@ -140,33 +140,30 @@
 
     public boolean handleAttribution(Point p, boolean click) {
-        if (source == null || !source.requiresAttribution())
+        if (source == null || !source.requiresAttribution()) {
             return false;
+        }
 
+        String url = getUrlAtPoint(p);
+        if (url != null) {
+            if (click) {
+                FeatureAdapter.openLink(url);
+            }
+            return true;
+        }
+
+        return false;
+    }
+   
+    private String getUrlAtPoint(Point p) {
         if (attrTextBounds != null && attrTextBounds.contains(p)) {
-            String attributionURL = source.getAttributionLinkURL();
-            if (attributionURL != null) {
-                if (click) {
-                    FeatureAdapter.openLink(attributionURL);
-                }
-                return true;
-            }
-        } else if (attrImageBounds != null && attrImageBounds.contains(p)) {
-            String attributionImageURL = source.getAttributionImageURL();
-            if (attributionImageURL != null) {
-                if (click) {
-                    FeatureAdapter.openLink(source.getAttributionImageURL());
-                }
-                return true;
-            }
-        } else if (attrToUBounds != null && attrToUBounds.contains(p)) {
-            String termsOfUseURL = source.getTermsOfUseURL();
-            if (termsOfUseURL != null) {
-                if (click) {
-                    FeatureAdapter.openLink(termsOfUseURL);
-                }
-                return true;
-            }
+            return source.getAttributionLinkURL();
         }
-        return false;
+        if (attrImageBounds != null && attrImageBounds.contains(p)) {
+            return source.getAttributionImageURL();
+        }
+        if (attrToUBounds != null && attrToUBounds.contains(p)) {
+            return source.getTermsOfUseURL();
+        }
+        return null;
     }
 
