Index: core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
index d1e6687999209247baca636dcbe5d7e7a2ae4599..9296cd61589ec9fe6ccb4e3a1e8bb2983bde45a5 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
@@ -86,10 +86,11 @@ FX_BOOL CPDF_Image::LoadImageF(CPDF_Stream* pStream, FX_BOOL bInline) { |
if (m_bInline) { |
m_pInlineDict = ToDictionary(pDict->Clone()); |
} |
- m_pOC = pDict->GetDict("OC"); |
- m_bIsMask = !pDict->KeyExist("ColorSpace") || pDict->GetInteger("ImageMask"); |
- m_bInterpolate = pDict->GetInteger("Interpolate"); |
- m_Height = pDict->GetInteger("Height"); |
- m_Width = pDict->GetInteger("Width"); |
+ m_pOC = pDict->GetDictBy("OC"); |
+ m_bIsMask = |
+ !pDict->KeyExist("ColorSpace") || pDict->GetIntegerBy("ImageMask"); |
+ m_bInterpolate = pDict->GetIntegerBy("Interpolate"); |
+ m_Height = pDict->GetIntegerBy("Height"); |
+ m_Width = pDict->GetIntegerBy("Width"); |
return TRUE; |
} |