mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 77904
This commit is contained in:
@ -2187,6 +2187,11 @@ BYTE* CPdfReader::GetAPAnnots(int nRasterW, int nRasterH, int nBackgroundColor,
|
||||
Object oAnnot, oObj;
|
||||
std::string sType;
|
||||
oAnnots.arrayGet(i, &oAnnot);
|
||||
if (!oAnnot.isDict())
|
||||
{
|
||||
oAnnot.free();
|
||||
continue;
|
||||
}
|
||||
if (oAnnot.dictLookup("Subtype", &oObj)->isName())
|
||||
sType = oObj.getName();
|
||||
oObj.free(); oAnnot.free();
|
||||
|
||||
Reference in New Issue
Block a user