Ignore:
Timestamp:
2016-06-16T17:25:29+02:00 (8 years ago)
Author:
stoecker
Message:

see #12966 - don't mix caching of resource and zip-archive images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r10378 r10403  
    840840                    }
    841841
    842                     ImageResource ir = cache.get(cacheName);
    843                     if (ir != null) return ir;
    844 
    845842                    switch (place) {
    846843                    case typeArchive:
    847844                        if (archive != null) {
     845                            cacheName = "zip:"+archive+":"+cacheName;
     846                            ImageResource ir = cache.get(cacheName);
     847                            if (ir != null) return ir;
     848
    848849                            ir = getIfAvailableZip(fullName, archive, inArchiveDir, type);
    849850                            if (ir != null) {
     
    854855                        break;
    855856                    case typeLocal:
     857                        ImageResource ir = cache.get(cacheName);
     858                        if (ir != null) return ir;
     859
    856860                        // getImageUrl() does a ton of "stat()" calls and gets expensive
    857861                        // and redundant when you have a whole ton of objects. So,
Note: See TracChangeset for help on using the changeset viewer.