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