diff options
Diffstat (limited to 'core/src/fpdfdoc')
-rw-r--r-- | core/src/fpdfdoc/doc_formfield.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/src/fpdfdoc/doc_formfield.cpp b/core/src/fpdfdoc/doc_formfield.cpp index b62f8ba0b1..617acd4e99 100644 --- a/core/src/fpdfdoc/doc_formfield.cpp +++ b/core/src/fpdfdoc/doc_formfield.cpp @@ -300,14 +300,16 @@ CFX_WideString CPDF_FormField::GetValue(FX_BOOL bDefault) { } } switch (pValue->GetType()) { - case PDFOBJ_STRING: - case PDFOBJ_STREAM: + case CPDF_Object::STRING: + case CPDF_Object::STREAM: return pValue->GetUnicodeText(); - case PDFOBJ_ARRAY: + case CPDF_Object::ARRAY: pValue = pValue->AsArray()->GetElementValue(0); if (pValue) return pValue->GetUnicodeText(); break; + default: + break; } return CFX_WideString(); } |