Index: fpdfsdk/src/fpdfppo.cpp |
diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp |
index 6521258485b5ec3b9b6b66fc1bcf0709879b2102..c37ecca4906f68aa071f25216f39c96a95aef639 100644 |
--- a/fpdfsdk/src/fpdfppo.cpp |
+++ b/fpdfsdk/src/fpdfppo.cpp |
@@ -186,9 +186,8 @@ CPDF_Object* CPDF_PageOrganizer::PageDictGetInheritableTag( |
return NULL; |
CPDF_Object* pType = pDict->GetElement("Type")->GetDirect(); |
- if (!pType || pType->GetType() != PDFOBJ_NAME) |
- return NULL; |
- |
+ if (!ToName(pType)) |
+ return nullptr; |
dsinclair
2015/10/21 18:00:14
Merge conflict. I'm guessing due to the NULL vs nu
Tom Sepez
2015/10/21 19:41:04
Acknowledged.
|
if (pType->GetString().Compare("Page")) |
return NULL; |
if (!pDict->KeyExist("Parent")) |