mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 03:08:28 +08:00
Fix bug 77224
This commit is contained in:
@ -3075,14 +3075,17 @@ HRESULT CPdfWriter::EditWidgetParents(NSFonts::IApplicationFonts* pAppFonts, CWi
|
||||
|
||||
bool bReplase = false;
|
||||
int nID = pP->GetObjId();
|
||||
for (int i = 0; i < pKids->GetCount(); ++i)
|
||||
if (nID > 0)
|
||||
{
|
||||
PdfWriter::CObjectBase* pKid = pKids->Get(i);
|
||||
if (pKid->GetObjId() == nID)
|
||||
for (int i = 0; i < pKids->GetCount(); ++i)
|
||||
{
|
||||
pKids->Insert(pKid, pP, true);
|
||||
bReplase = true;
|
||||
break;
|
||||
PdfWriter::CObjectBase* pKid = pKids->Get(i);
|
||||
if (pKid->GetObjId() == nID)
|
||||
{
|
||||
pKids->Insert(pKid, pP, true);
|
||||
bReplase = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!bReplase)
|
||||
|
||||
Reference in New Issue
Block a user