Index: core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
diff --git a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
index 0f087d980a91807f4d3c82fc9c10b7c182a760db..21934d35c48424f7e522c8ba760c9bfb341ab2f5 100644 |
--- a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
+++ b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
@@ -1410,7 +1410,7 @@ void CPDF_Creator::InitNewObjNumOffsets() { |
for (const auto& pair : m_pDocument->m_IndirectObjs) { |
const uint32_t objnum = pair.first; |
const CPDF_Object* pObj = pair.second; |
- if (pObj->GetObjNum() == -1) |
+ if (pObj->GetObjNum() == CPDF_Object::kInvalidObjNum) |
continue; |
if (bIncremental) { |
if (!pObj->IsModified()) |