Fix bug 60317

This commit is contained in:
Svetlana Kulikova
2024-06-26 12:29:51 +03:00
parent 971205b325
commit 81806d96d0
2 changed files with 2 additions and 3 deletions

View File

@ -2820,6 +2820,7 @@ PdfWriter::CImageDict* CPdfWriter::LoadImage(Aggplus::CImage* pImage, BYTE nAlph
bool bAlpha = false;
CBgraFrame oFrame;
/*
if (m_pDocument->IsPDFA())
{
BYTE* pCopyImage = new BYTE[4 * nImageW * nImageH];
@ -2846,6 +2847,7 @@ PdfWriter::CImageDict* CPdfWriter::LoadImage(Aggplus::CImage* pImage, BYTE nAlph
oFrame.put_Stride(-4* nImageW);
}
else
*/
{
BYTE* pDataMem = pData;
for (int nIndex = 0, nSize = nImageW * nImageH; nIndex < nSize; nIndex++)