Fix bug 77362

This commit is contained in:
Svetlana Kulikova
2025-10-08 14:07:47 +03:00
parent fc0d3abd6a
commit c4525f8ae1
2 changed files with 2 additions and 2 deletions

View File

@ -3572,7 +3572,7 @@ void CPdfEditor::Redact(IAdvancedCommand* _pCommand)
Object oContents;
pPage->getContents(&oContents);
PDFRectangle* box = pPage->getMediaBox();
Gfx* gfx = new Gfx(pPDFDocument, &oRedactOut, nPageIndex, pPage->getResourceDict(), 72.0, 72.0, box, NULL, 0);
Gfx* gfx = new Gfx(pPDFDocument, &oRedactOut, m_nEditPage, pPage->getResourceDict(), 72.0, 72.0, box, NULL, 0);
gfx->saveState();
gfx->display(&oContents);
gfx->endOfPage();

View File

@ -91,7 +91,7 @@ void RedactOutputDev::setDefaultCTM(double *ctm)
}
void RedactOutputDev::startPage(int nPageIndex, GfxState *pGState)
{
m_pPage = m_pDoc->GetEditPage(nPageIndex - 1);
m_pPage = m_pDoc->GetEditPage(nPageIndex);
m_pRenderer->EditPage(m_pPage);
m_pDoc->SetCurPage(m_pPage);
m_pDoc->ClearPageFull();