summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_interform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_interform.cpp')
-rw-r--r--core/fpdfdoc/cpdf_interform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfdoc/cpdf_interform.cpp b/core/fpdfdoc/cpdf_interform.cpp
index c8440eac00..2fbc3aa32a 100644
--- a/core/fpdfdoc/cpdf_interform.cpp
+++ b/core/fpdfdoc/cpdf_interform.cpp
@@ -1203,11 +1203,11 @@ void CPDF_InterForm::FDF_ImportField(CPDF_Dictionary* pFieldDict,
FormFieldType fieldType = pField->GetFieldType();
if (bNotify && m_pFormNotify) {
if (fieldType == FormFieldType::kListBox) {
- if (m_pFormNotify->BeforeSelectionChange(pField, csWValue) < 0)
+ if (!m_pFormNotify->BeforeSelectionChange(pField, csWValue))
return;
} else if (fieldType == FormFieldType::kComboBox ||
fieldType == FormFieldType::kTextField) {
- if (m_pFormNotify->BeforeValueChange(pField, csWValue) < 0)
+ if (!m_pFormNotify->BeforeValueChange(pField, csWValue))
return;
}
}