Changeset 29732 in osm for applications/editors


Ignore:
Timestamp:
2013-06-30T19:05:19+02:00 (11 years ago)
Author:
pieren
Message:

restore loadCache() fixing a deserialization issue with bufferedImage (perf pbl)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheControl.java

    r29714 r29732  
    159159            }
    160160        }
    161         /*
    162         Previously contained a call to RasterImageModifier.fixRasterImage() to fix a de-serialization bug on some
    163         older java 6 versions. Request a jre update if any complains. 
    164         */
     161        if (successfulRead && wmsLayer.isRaster()) {
     162            // serialized raster bufferedImage hangs-up on Java6. Recreate them here
     163            wmsLayer.getImage(0).image = RasterImageModifier.fixRasterImage(wmsLayer.getImage(0).image);
     164        }
    165165        return successfulRead;
    166166    }
Note: See TracChangeset for help on using the changeset viewer.