Fix build

This commit is contained in:
Svetlana Kulikova
2025-10-02 14:11:32 +03:00
parent 2bc14634bb
commit 8cc18975b7
3 changed files with 7 additions and 9 deletions

View File

@ -53,9 +53,7 @@
#include "SrcWriter/Destination.h"
#include "SrcWriter/Outline.h"
#include "SrcWriter/GState.h"
#ifndef BUILDING_WASM_MODULE
#include "SrcWriter/RedactOutputDev.h"
#endif
#define AddToObject(oVal)\
{\
@ -3570,7 +3568,6 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand)
if (bEditPage)
{
#ifndef BUILDING_WASM_MODULE
PdfWriter::RedactOutputDev oRedactOut(m_pWriter);
oRedactOut.NewPDF(pPDFDocument->getXRef());
oRedactOut.SetRedact(arrAllQuads);
@ -3584,7 +3581,6 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand)
gfx->endOfPage();
oContents.free();
RELEASEOBJECT(gfx);
#endif
}
else
{