Index: trunk/src/org/openstreetmap/josm/data/preferences/ColorInfo.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/preferences/ColorInfo.java	(revision 14151)
+++ trunk/src/org/openstreetmap/josm/data/preferences/ColorInfo.java	(revision 14152)
@@ -4,4 +4,5 @@
 import java.awt.Color;
 import java.util.List;
+
 import org.openstreetmap.josm.tools.ColorHelper;
 
@@ -149,3 +150,10 @@
     }
 
+    @Override
+    public String toString() {
+        return "ColorInfo [" + (category != null ? "category=" + category + ", " : "")
+                + (source != null ? "source=" + source + ", " : "") + (name != null ? "name=" + name + ", " : "")
+                + (value != null ? "value=" + value + ", " : "")
+                + (defaultValue != null ? "defaultValue=" + defaultValue : "") + "]";
+    }
 }
Index: trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java	(revision 14151)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java	(revision 14152)
@@ -236,6 +236,6 @@
                 .sorted((e1, e2) -> {
                     int cat = Integer.compare(
-                            getCategroyPriority(e1.info.getCategory()),
-                            getCategroyPriority(e2.info.getCategory()));
+                            getCategoryPriority(e1.info.getCategory()),
+                            getCategoryPriority(e2.info.getCategory()));
                     if (cat != 0) return cat;
                     return Collator.getInstance().compare(e1.getDisplay(), e2.getDisplay());
@@ -246,8 +246,7 @@
             this.colors.repaint();
         }
-
-    }
-
-    private static int getCategroyPriority(String category) {
+    }
+
+    private static int getCategoryPriority(String category) {
         switch (category) {
             case NamedColorProperty.COLOR_CATEGORY_GENERAL: return 1;
@@ -409,5 +408,5 @@
             if (e.info.getValue() != null) {
                 if (e.toProperty().put(e.info.getValue())
-                        && e.key.startsWith("mappaint.")) {
+                        && NamedColorProperty.COLOR_CATEGORY_MAPPAINT.equals(e.info.getCategory())) {
                     ret = true;
                 }
