Index: /trunk/scripts/TagInfoExtract.groovy
===================================================================
--- /trunk/scripts/TagInfoExtract.groovy	(revision 10926)
+++ /trunk/scripts/TagInfoExtract.groovy	(revision 10927)
@@ -128,7 +128,6 @@
             def image = c.get("icon-image")
             if (image) {
-                if (image instanceof IconReference) {
-                    if (image.iconName != "misc/deprecated.svg")
-                        return find_image_url(image.iconName)
+                if (image instanceof IconReference && !image.isDeprecatedIcon()) {
+                    return find_image_url(image.iconName)
                 }
             }
Index: /trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java	(revision 10926)
+++ /trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java	(revision 10927)
@@ -111,4 +111,13 @@
         public String toString() {
             return "IconReference{" + "iconName='" + iconName + "' source='" + source.getDisplayString() + "'}";
+        }
+
+        /**
+         * Determines whether this icon represents a deprecated icon
+         * @return whether this icon represents a deprecated icon
+         * @since 10927
+         */
+        public boolean isDeprecatedIcon() {
+            return DEPRECATED_IMAGE_NAMES.contains(iconName);
         }
     }
