fix alpha pngs turning into white pngs when caching when you have a method that transforms the image but doesn't touch the pngs

This commit is contained in:
Kyle Fleming 2013-05-01 14:36:13 -07:00
parent 4137bce30d
commit e3b15e3dbe
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@
if (transformedImage && finished)
{
NSData *dataToStore = isImageGIF ? data : nil;
NSData *dataToStore = [transformedImage isEqual:downloadedImage] ? data : nil;
[self.imageCache storeImage:transformedImage imageData:dataToStore forKey:key toDisk:cacheOnDisk];
}
});