Index: /trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java	(revision 13088)
+++ /trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java	(revision 13089)
@@ -89,4 +89,5 @@
             cacheIdx++;
             preferenceCache.clear();
+            backgroundColorCache = null;
         });
     }
@@ -470,5 +471,4 @@
     void clear() {
         styleSources.clear();
-        invalidate();
     }
 
@@ -479,5 +479,4 @@
     void add(StyleSource style) {
         styleSources.add(style);
-        invalidate();
     }
 
@@ -489,5 +488,4 @@
     boolean remove(StyleSource style) {
         boolean result = styleSources.remove(style);
-        invalidate();
         return result;
     }
@@ -500,9 +498,4 @@
         styleSources.clear();
         styleSources.addAll(sources);
-        invalidate();
-    }
-
-    private void invalidate() {
-        backgroundColorCache = null;
     }
 
