| Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| index 054cf10c22d42a0f1e04a20c6f95c8cb06764605..3d669a04105ee8383cd7952582f570829f64eec4 100644
|
| --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| @@ -937,9 +937,10 @@ int32_t CPDF_Creator::WriteIndirectObjectToStream(const CPDF_Object* pObj) {
|
| m_pParser->m_ObjVersion[objnum] > 0) {
|
| return 1;
|
| }
|
| - if (pObj->GetType() == PDFOBJ_NUMBER) {
|
| +
|
| + if (pObj->IsNumber())
|
| return 1;
|
| - }
|
| +
|
| CPDF_Dictionary* pDict = pObj->GetDict();
|
| if (pObj->GetType() == PDFOBJ_STREAM) {
|
| if (pDict && pDict->GetString(FX_BSTRC("Type")) == FX_BSTRC("XRef")) {
|
|
|