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 52129d9e545cea285406f5f5a66d6fa4c018263c..a797332727000c1a367f462fe24f46c678cdea78 100644 |
--- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
+++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
@@ -1433,8 +1433,8 @@ void CPDF_Creator::InitNewObjNumOffsets() { |
FX_BOOL bNewStart = FALSE; |
for (; i < iCount; i++) { |
FX_DWORD dwCurObjNum = m_NewObjNumArray.ElementAt(i); |
- FX_BOOL bExist = (dwCurObjNum < nOldSize && |
- m_ObjectOffset.GetPtrAt(dwCurObjNum) != NULL); |
+ FX_BOOL bExist = |
+ (dwCurObjNum < nOldSize && m_ObjectOffset.GetPtrAt(dwCurObjNum)); |
if (bExist || dwCurObjNum - dwLastObjNum > 1) { |
if (!bNewStart) { |
m_ObjectOffset.Add(dwStartObjNum, dwLastObjNum - dwStartObjNum + 1); |