Index: src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
===================================================================
--- src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java	(revision 5874)
+++ src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java	(working copy)
@@ -212,12 +212,12 @@
         MirroredInputStream in = null;
         try {
             in = new MirroredInputStream(entry.url);
-            InputStream zip = in.getZipEntry("xml", "style");
+            InputStream zip = in.getZipEntry("mapcss", "style");
             if (zip != null)
+                return new MapCSSStyleSource(entry);
+            zip = in.getZipEntry("xml", "style");
+            if (zip != null)
                 return new XmlStyleSource(entry);
-            zip = in.getZipEntry("mapcss", "style");
-            if (zip != null)
-                return new MapCSSStyleSource(entry);
             if (entry.url.toLowerCase().endsWith(".mapcss"))
                 return new MapCSSStyleSource(entry);
             if (entry.url.toLowerCase().endsWith(".xml"))
