Index: fpdfsdk/fpdfppo.cpp |
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp |
index 610aae7abdcd4acf5ba21e08fd990c3393b23282..ec3312b121c52eb0c57a8da44919b63c6037f153 100644 |
--- a/fpdfsdk/fpdfppo.cpp |
+++ b/fpdfsdk/fpdfppo.cpp |
@@ -221,10 +221,10 @@ bool CPDF_PageOrganizer::ExportPage(const std::vector<uint16_t>& pageNums, |
} else { |
// Make the default size to be letter size (8.5'x11') |
CPDF_Array* pArray = new CPDF_Array; |
- pArray->AddNumber(0); |
- pArray->AddNumber(0); |
- pArray->AddNumber(612); |
- pArray->AddNumber(792); |
+ pArray->AddNew<CPDF_Number>(0); |
+ pArray->AddNew<CPDF_Number>(0); |
+ pArray->AddNew<CPDF_Number>(612); |
+ pArray->AddNew<CPDF_Number>(792); |
pCurPageDict->SetFor("MediaBox", pArray); |
} |
} |