| 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 7dc90601c418bc17db35c497e7f5f56df113d982..7727cc0ec72a3a8edaa1d9572f3ab7dce56f18f8 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())
|
|
|