Index: fpdfsdk/src/fpdfsave.cpp |
diff --git a/fpdfsdk/src/fpdfsave.cpp b/fpdfsdk/src/fpdfsave.cpp |
index 0be1709f378c7ea036d76ac1a84f395a5d2dbd0a..b3ab2f0df94a29e0fe31c5e1fa4cdf45acec1cb3 100644 |
--- a/fpdfsdk/src/fpdfsave.cpp |
+++ b/fpdfsdk/src/fpdfsave.cpp |
@@ -67,17 +67,18 @@ FX_BOOL _SaveXFADocumentData(CPDFXFA_Document* pDocument, CFX_PtrArray& fileList |
return FALSE; |
if (pDocument->GetDocType() != DOCTYPE_DYNIMIC_XFA && pDocument->GetDocType() != DOCTYPE_STATIC_XFA) |
return TRUE; |
- if (!FPDFXFA_GetApp()->GetXFAApp()) |
+ if (!CPDFXFA_App::GetInstance()->GetXFAApp()) |
return TRUE; |
IXFA_DocView* pXFADocView = pDocument->GetXFADocView(); |
if (NULL == pXFADocView) |
return TRUE; |
- IXFA_DocHandler *pXFADocHandler = FPDFXFA_GetApp()->GetXFAApp()->GetDocHandler(); |
- |
+ |
+ IXFA_DocHandler *pXFADocHandler = CPDFXFA_App::GetInstance()->GetXFAApp()->GetDocHandler(); |
CPDF_Document * pPDFDocument = pDocument->GetPDFDoc(); |
- if (pDocument == NULL) |
+ if (pDocument == NULL) |
return FALSE; |
+ |
CPDF_Dictionary* pRoot = pPDFDocument->GetRoot(); |
if (pRoot == NULL) |
return FALSE; |