Ticket #8614: mapcss_and_preset_in_zip.patch

File mapcss_and_preset_in_zip.patch, 1.1 KB (added by Daeron, 13 years ago)
  • src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

     
    212212        MirroredInputStream in = null;
    213213        try {
    214214            in = new MirroredInputStream(entry.url);
    215             InputStream zip = in.getZipEntry("xml", "style");
     215            InputStream zip = in.getZipEntry("mapcss", "style");
    216216            if (zip != null)
     217                return new MapCSSStyleSource(entry);
     218            zip = in.getZipEntry("xml", "style");
     219            if (zip != null)
    217220                return new XmlStyleSource(entry);
    218             zip = in.getZipEntry("mapcss", "style");
    219             if (zip != null)
    220                 return new MapCSSStyleSource(entry);
    221221            if (entry.url.toLowerCase().endsWith(".mapcss"))
    222222                return new MapCSSStyleSource(entry);
    223223            if (entry.url.toLowerCase().endsWith(".xml"))