diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-13 18:31:55 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-13 18:31:55 +0000 |
commit | dc62019316b411c2e8fe1e9c1a3aa5fb89762cd4 (patch) | |
tree | d6d4fe77336ad2f92580a9f0e363837958cdcde0 /core/fpdfapi/page/cpdf_colorstate.cpp | |
parent | 00e72c1d1787c71e08d42a06cca3a53419e369da (diff) | |
download | pdfium-dc62019316b411c2e8fe1e9c1a3aa5fb89762cd4.tar.xz |
Get rid of CPDF_Color::GetColorSpace().
Replace it with more narrowly focused methods to get specific bits from
the colorspace.
Change-Id: Ifd2980f0fd06230d4d94d28eddf72219d2e9e6eb
Reviewed-on: https://pdfium-review.googlesource.com/30590
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorstate.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_colorstate.cpp b/core/fpdfapi/page/cpdf_colorstate.cpp index 492114ab00..9abd9f78e4 100644 --- a/core/fpdfapi/page/cpdf_colorstate.cpp +++ b/core/fpdfapi/page/cpdf_colorstate.cpp @@ -128,7 +128,7 @@ void CPDF_ColorState::SetColor(CPDF_ColorSpace* pCS, else if (color->IsNull()) color->SetColorSpace(CPDF_ColorSpace::GetStockCS(PDFCS_DEVICEGRAY)); - if (color->GetColorSpace()->CountComponents() > values.size()) + if (color->CountComponents() > values.size()) return; if (!color->IsPattern()) |