diff options
author | thestig <thestig@chromium.org> | 2016-11-08 16:22:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-08 16:22:28 -0800 |
commit | 28c888b8ee6d1da93cffaa8c14833ddc4986cc79 (patch) | |
tree | 09ca8cbc09ce58ab57e5b045cabfd84634679aac /core/fpdfapi/page/cpdf_colorspace.cpp | |
parent | 2599ff7ae76a2e7514c1794281ccb0802d6df2bc (diff) | |
download | pdfium-28c888b8ee6d1da93cffaa8c14833ddc4986cc79.tar.xz |
Cleanup CPDF_DeviceCS and friends.chromium/2914
Review-Url: https://codereview.chromium.org/2482273002
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorspace.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorspace.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_colorspace.cpp b/core/fpdfapi/page/cpdf_colorspace.cpp index 2740169d04..0c023d19ff 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 = |