Index: trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java	(revision 9398)
+++ trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java	(revision 9400)
@@ -83,9 +83,7 @@
 
     /**
-     * IconReference is used to remember the associated style source for
-     * each icon URL.
+     * IconReference is used to remember the associated style source for each icon URL.
      * This is necessary because image URLs can be paths relative
-     * to the source file and we have cascading of properties from different
-     * source files.
+     * to the source file and we have cascading of properties from different source files.
      */
     public static class IconReference {
@@ -106,6 +104,5 @@
 
     /**
-     * Image provider for icon. Note that this is a provider only. A @link{ImageProvider#get()} call may still
-     * fail!
+     * Image provider for icon. Note that this is a provider only. A @link{ImageProvider#get()} call may still fail!
      *
      * @param ref reference to the requested icon
@@ -124,5 +121,7 @@
                 .setOptional(true);
         if (test && i.get() == null) {
-            Main.warn("Mappaint style \""+namespace+"\" ("+ref.source.getDisplayString()+") icon \"" + ref.iconName + "\" not found.");
+            String msg = "Mappaint style \""+namespace+"\" ("+ref.source.getDisplayString()+") icon \"" + ref.iconName + "\" not found.";
+            ref.source.logWarning(msg);
+            Main.warn(msg);
             return null;
         }
