Index: fpdfsdk/src/fsdk_actionhandler.cpp |
diff --git a/fpdfsdk/src/fsdk_actionhandler.cpp b/fpdfsdk/src/fsdk_actionhandler.cpp |
index 5ded984c631619f91851d3cf9b3262bc14026f79..9b41e47421f1ce4ef84bc68b3a68a8524610feac 100644 |
--- a/fpdfsdk/src/fsdk_actionhandler.cpp |
+++ b/fpdfsdk/src/fsdk_actionhandler.cpp |
@@ -269,22 +269,17 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteDocumentPageAction(const CPDF_Action& acti |
FX_BOOL CPDFSDK_ActionHandler::IsValidField(CPDFSDK_Document* pDocument, CPDF_Dictionary* pFieldDict) |
{ |
- ASSERT(m_pEvi != NULL); |
- ASSERT(pDocument != NULL); |
- ASSERT(pFieldDict != NULL); |
+ ASSERT(m_pEvi != NULL); |
+ ASSERT(pDocument != NULL); |
Nico
2014/08/06 21:17:17
The rest of the file uses tabs, we shouldn't mix t
|
+ ASSERT(pFieldDict != NULL); |
- if (1/*m_pApp->IsValidDocument(pDocument)*/) |
- { |
- CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm(); |
- ASSERT(pInterForm != NULL); |
+ CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm(); |
+ ASSERT(pInterForm != NULL); |
- CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); |
- ASSERT(pPDFInterForm != NULL); |
+ CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); |
+ ASSERT(pPDFInterForm != NULL); |
- return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL; |
- } |
- |
- return FALSE; |
+ return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL; |
} |
FX_BOOL CPDFSDK_ActionHandler::ExecuteFieldAction(const CPDF_Action& action, CPDF_AAction::AActionType type, |