| Index: fpdfsdk/src/fpdfppo.cpp
|
| diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp
|
| index 032c3dba397c4f7e627c92a942bcb274763f4e9c..b8d2125b7dab667e0e0d9d50aa708474309757b6 100644
|
| --- a/fpdfsdk/src/fpdfppo.cpp
|
| +++ b/fpdfsdk/src/fpdfppo.cpp
|
| @@ -215,8 +215,11 @@ CPDF_Object* CPDF_PageOrganizer::PageDictGetInheritableTag(CPDF_Dictionary *pDic
|
| {
|
| if(pp->KeyExist((const char*)nSrctag))
|
| return pp->GetElement((const char*)nSrctag);
|
| - else if(pp->KeyExist("Parent"))
|
| + else if (pp->KeyExist("Parent"))
|
| + {
|
| pp = (CPDF_Dictionary*)pp->GetElement("Parent")->GetDirect();
|
| + if (pp->GetType() == PDFOBJ_NULL) break;
|
| + }
|
| else break;
|
| }
|
|
|
|
|