summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/fpdfapi/fpdf_edit')
-rw-r--r--core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
index 054cf10c22..3d669a0410 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")) {