| Index: core/fpdfapi/page/cpdf_colorspace.cpp
|
| diff --git a/core/fpdfapi/page/cpdf_colorspace.cpp b/core/fpdfapi/page/cpdf_colorspace.cpp
|
| index 2740169d0414a08770df0adcdc3583a259c9db3f..0c023d19ff90ea7ec3dd6cbecbd34810e21c848c 100644
|
| --- a/core/fpdfapi/page/cpdf_colorspace.cpp
|
| +++ b/core/fpdfapi/page/cpdf_colorspace.cpp
|
| @@ -839,9 +839,8 @@ bool CPDF_ICCBasedCS::v_Load(CPDF_Document* pDoc, CPDF_Array* pArray) {
|
| if (!m_pProfile)
|
| return false;
|
|
|
| - m_nComponents =
|
| - m_pProfile
|
| - ->GetComponents(); // Try using the nComponents from ICC profile
|
| + // Try using the |nComponents| from ICC profile
|
| + m_nComponents = m_pProfile->GetComponents();
|
| CPDF_Dictionary* pDict = pStream->GetDict();
|
| if (!m_pProfile->m_pTransform) { // No valid ICC profile or using sRGB
|
| CPDF_Object* pAlterCSObj =
|
|
|