Revert "Make CFX_FontMgr member variables private."
[pdfium.git] / fpdfsdk / src / fsdk_mgr.cpp
index 4cf05a2..883ad60 100644 (file)
@@ -480,7 +480,8 @@ FX_BOOL CPDFSDK_Document::ProcOpenAction() {
   if (pOpenAction->GetType() == PDFOBJ_ARRAY)
     return TRUE;
 
-  if (CPDF_Dictionary* pDict = pOpenAction->AsDictionary()) {
+  if (pOpenAction->GetType() == PDFOBJ_DICTIONARY) {
+    CPDF_Dictionary* pDict = (CPDF_Dictionary*)pOpenAction;
     CPDF_Action action(pDict);
     if (m_pEnv->GetActionHander())
       m_pEnv->GetActionHander()->DoAction_DocOpen(action, this);