Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 22105 → Rev 22122

/branches/Version14x/Scribus/scribus/scimgdataloader_jpeg.cpp
89,11 → 89,11
// and image data are not consistent, discard embedded profile.
eColorSpaceType colorSpace = prof.colorSpace();
if (colorSpace == ColorSpace_Rgb)
profileIsValid = (cinfo.output_components == 3);
profileIsValid = (cinfo.num_components == 3);
if (colorSpace == ColorSpace_Cmyk)
profileIsValid = (cinfo.output_components == 4);
profileIsValid = (cinfo.num_components == 4);
if (colorSpace == ColorSpace_Gray)
profileIsValid = (cinfo.output_components == 1);
profileIsValid = (cinfo.num_components == 1);
}
if (profileIsValid)
{