mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 77353
This commit is contained in:
@ -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;
|
||||||
|
|||||||
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user