summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_patterncs.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-20 11:59:00 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-12-21 19:24:47 +0000
commitf2af8326501d72bf3fb23f0c62ade28310836ba9 (patch)
treeaaf42199f051629a07a23d8644a4f348fcb0a2b2 /core/fpdfapi/page/cpdf_patterncs.cpp
parentab384ed5a2c6c05a5d55645b7a50c6c42b613165 (diff)
downloadpdfium-f2af8326501d72bf3fb23f0c62ade28310836ba9.tar.xz
Fix various nits in color code.
Change-Id: Idf2af2dd613d0e2bed5ef9bba4f8c50cd5bc1bc5 Reviewed-on: https://pdfium-review.googlesource.com/21851 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_patterncs.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_patterncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_patterncs.cpp b/core/fpdfapi/page/cpdf_patterncs.cpp
index d1b7bf8e10..d14a2c1976 100644
--- a/core/fpdfapi/page/cpdf_patterncs.cpp
+++ b/core/fpdfapi/page/cpdf_patterncs.cpp
@@ -43,7 +43,7 @@ bool CPDF_PatternCS::v_Load(CPDF_Document* pDoc,
m_pCountedBaseCS = pDocPageData->FindColorSpacePtr(m_pBaseCS->GetArray());
m_nComponents = m_pBaseCS->CountComponents() + 1;
- return m_pBaseCS->CountComponents() <= MAX_PATTERN_COLORCOMPS;
+ return m_pBaseCS->CountComponents() <= kMaxPatternColorComps;
}
bool CPDF_PatternCS::GetRGB(float* pBuf, float* R, float* G, float* B) const {