mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix AP_N_Yes for radiobutton
This commit is contained in:
@ -2117,10 +2117,8 @@ namespace PdfWriter
|
||||
{
|
||||
CObjectBase* pAP, *pAPN;
|
||||
Add("AS", "Off");
|
||||
if (!m_sAP_N_Yes.empty())
|
||||
{
|
||||
CObjectBase* pObj = GetObjValue("Opt");
|
||||
if (pObj && pObj->GetType() == object_type_ARRAY)
|
||||
if (!m_sAP_N_Yes.empty() && pObj && pObj->GetType() == object_type_ARRAY)
|
||||
{
|
||||
CArrayObject* pArr = (CArrayObject*)pObj;
|
||||
for (int i = 0; i < pArr->GetCount(); ++i)
|
||||
@ -2140,7 +2138,6 @@ namespace PdfWriter
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Add("AS", m_sAP_N_Yes.c_str());
|
||||
}
|
||||
else if ((pAP = Get("AP")) && pAP->GetType() == object_type_DICT && (pAPN = ((CDictObject*)pAP)->Get("N")) && pAPN->GetType() == object_type_DICT && ((CDictObject*)pAPN)->Get(sV))
|
||||
|
||||
Reference in New Issue
Block a user