Index: fpdfsdk/src/fpdfppo.cpp |
diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp |
index ab25b7693432598d8c88ef411fad2b363ec77bbc..d50e98f0acacc129cfe947637c6776f983bdc58a 100644 |
--- a/fpdfsdk/src/fpdfppo.cpp |
+++ b/fpdfsdk/src/fpdfppo.cpp |
@@ -178,7 +178,7 @@ CPDF_Object* CPDF_PageOrganizer::PageDictGetInheritableTag( |
return nullptr; |
CPDF_Object* pType = pDict->GetElement("Type")->GetDirect(); |
- if (!pType || pType->GetType() != PDFOBJ_NAME) |
+ if (!ToName(pType)) |
return nullptr; |
if (pType->GetString().Compare("Page")) |
return nullptr; |