For bug 78854

This commit is contained in:
Svetlana Kulikova
2025-12-01 19:59:30 +03:00
parent 10bdf2703a
commit 44ffa4b72e
2 changed files with 8 additions and 1 deletions

View File

@ -3172,6 +3172,13 @@ bool CPdfEditor::DeleteAnnot(int nID, Object* oAnnots)
PdfWriter::CObjectBase* pObj = m_mObjManager.GetObj(nID);
if (pObj)
{
if (pObj->GetType() == PdfWriter::object_type_DICT)
{
PdfWriter::CObjectBase* pPopup = ((PdfWriter::CDictObject*)pObj)->Get("Popup");
int nIDPopup = m_mObjManager.FindObj(pPopup);
m_mObjManager.RemoveObj(nIDPopup);
pDoc->RemoveObj(pPopup);
}
m_mObjManager.RemoveObj(nID);
pDoc->RemoveObj(pObj);
return true;