Tp regression fix - don't color correct untagged jpegs if the pref is off.

This commit is contained in:
tor@cs.brown.edu 2007-07-23 17:58:21 -07:00
parent 6193855ecc
commit a4f68dd9d6

View File

@ -599,7 +599,7 @@ nsJPEGDecoder::OutputScanlines()
cmsDoTransform(mTransform,
mSamples[0], mSamples[0],
mInfo.output_width);
} else {
} else if (gfxPlatform::IsCMSEnabled()) {
/* No embedded ICC profile - treat as sRGB */
cmsHTRANSFORM transform = gfxPlatform::GetCMSRGBTransform();
if (transform) {