summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/page/cpdf_iccprofile.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_iccprofile.cpp b/core/fpdfapi/page/cpdf_iccprofile.cpp
index c0bf7cd2a2..ef1b9ef434 100644
--- a/core/fpdfapi/page/cpdf_iccprofile.cpp
+++ b/core/fpdfapi/page/cpdf_iccprofile.cpp
@@ -27,11 +27,10 @@ CPDF_IccProfile::CPDF_IccProfile(const CPDF_Stream* pStream,
return;
}
- uint32_t nSrcComps = 0;
auto* pIccModule = CPDF_ModuleMgr::Get()->GetIccModule();
- m_Transform = pIccModule->CreateTransform_sRGB(pData, dwSize, &nSrcComps);
+ m_Transform = pIccModule->CreateTransform_sRGB(pData, dwSize);
if (m_Transform)
- m_nSrcComponents = nSrcComps;
+ m_nSrcComponents = m_Transform->components();
}
CPDF_IccProfile::~CPDF_IccProfile() {}