Fix bug 77353

This commit is contained in:
Svetlana Kulikova
2025-10-10 11:55:00 +03:00
parent 78085554b5
commit 869bbf6cc9
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ JSSmart<CJSValue> CDrawingFileEmbed::RedactPage(JSSmart<CJSValue> nPageIndex, JS
JSSmart<CJSTypedArray> dataPtr = dataFiller->toTypedArray(); JSSmart<CJSTypedArray> dataPtr = dataFiller->toTypedArray();
CJSDataBuffer buffer = dataPtr->getData(); CJSDataBuffer buffer = dataPtr->getData();
result = m_pFile->RedactPage(pageIndex, pBox, nCountBox / 8, buffer.Data, (int)buffer.Len); result = m_pFile->RedactPage(pageIndex, pBox, nCountBox / 8, buffer.Data, (int)buffer.Len, true);
if (pBox) if (pBox)
delete[] pBox; delete[] pBox;

View File

@ -137,7 +137,7 @@ CFile.prototype._UndoMergePages = function()
CFile.prototype._RedactPage = function(pageIndex, box, filler) CFile.prototype._RedactPage = function(pageIndex, box, filler)
{ {
let dataFiller = (undefined !== filler.byteLength) ? new Float64Array(filler) : filler; let dataFiller = (undefined !== filler.byteLength) ? new Uint8Array(filler) : filler;
return g_native_drawing_file["RedactPage"](pageIndex, box, dataFiller); return g_native_drawing_file["RedactPage"](pageIndex, box, dataFiller);
}; };