Fix bug 76484

This commit is contained in:
Svetlana Kulikova
2025-08-28 12:10:22 +03:00
parent 31c28903d6
commit 3404aab782
2 changed files with 2 additions and 3 deletions

View File

@ -1405,10 +1405,8 @@ namespace PdfWriter
std::string sValue = U_TO_UTF8(wsT);
CDictObject* pOwner = GetObjOwnValue("T");
if (!pOwner)
{
pOwner = this;
pOwner->Add("T", new CStringObject(sValue.c_str(), true));
}
pOwner->Add("T", new CStringObject(sValue.c_str(), true));
}
void CWidgetAnnotation::SetBC(const std::vector<double>& arrBC)
{

View File

@ -741,6 +741,7 @@ namespace PdfWriter
}
void CDocument::AddAnnotation(const int& nID, CAnnotation* pAnnot)
{
pAnnot->SetXref(m_pXref);
m_mAnnotations[nID] = pAnnot;
}
CImageDict* CDocument::CreateImage()