Changeset 5875 in josm for trunk


Ignore:
Timestamp:
2013-04-17T00:28:38+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8614 - Mapcss in zip-file doesn't work if there's xml-files also in there (patch by Daeron)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r5874 r5875  
    213213        try {
    214214            in = new MirroredInputStream(entry.url);
    215             InputStream zip = in.getZipEntry("xml", "style");
     215            InputStream zip = in.getZipEntry("mapcss", "style");
     216            if (zip != null)
     217                return new MapCSSStyleSource(entry);
     218            zip = in.getZipEntry("xml", "style");
    216219            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);
Note: See TracChangeset for help on using the changeset viewer.