mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Mask image
This commit is contained in:
@ -1088,7 +1088,7 @@ PDFColorSpacePointer PDFIndexedColorSpace::createIndexedColorSpace(const PDFDict
|
||||
const int colorCount = maxValue - MIN_VALUE + 1;
|
||||
const int componentCount = static_cast<int>(baseColorSpace->getColorComponentCount());
|
||||
const int byteCount = colorCount * componentCount;
|
||||
if (byteCount != colors.size())
|
||||
if (byteCount > colors.size())
|
||||
{
|
||||
throw PDFException(PDFTranslationContext::tr("Invalid colors for indexed color space. Color space has %1 colors, %2 color components and must have %3 size. Provided size is %4.").arg(colorCount).arg(componentCount).arg(byteCount).arg(colors.size()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user