Index: fpdfsdk/fpdfppo.cpp |
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp |
index 4377c3ed94a2c4ba352dab9cd09f2061249f265a..6a72141e7d65a3b3b4566a1edbab203ecba12be3 100644 |
--- a/fpdfsdk/fpdfppo.cpp |
+++ b/fpdfsdk/fpdfppo.cpp |
@@ -86,8 +86,7 @@ FX_BOOL CPDF_PageOrganizer::PDFDocInit(CPDF_Document* pDestPDFDoc, |
CPDF_Array* pKeysArray = pNewPages->GetArrayBy("Kids"); |
if (!pKeysArray) { |
CPDF_Array* pNewKids = new CPDF_Array; |
- FX_DWORD Kidsobjnum = -1; |
- Kidsobjnum = pDestPDFDoc->AddIndirectObject(pNewKids); |
+ FX_DWORD Kidsobjnum = pDestPDFDoc->AddIndirectObject(pNewKids); |
pNewPages->SetAt("Kids", new CPDF_Reference(pDestPDFDoc, Kidsobjnum)); |
pNewPages->SetAt("Count", new CPDF_Number(0)); |