summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pagemodule.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-22 00:30:04 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-12-22 19:44:07 +0000
commit05dcbc931eacb72f1a11835ae282fc8434b7a434 (patch)
treed05902195813a9760e6d90f5189c2dd421676975 /core/fpdfapi/page/cpdf_pagemodule.cpp
parent891aaf63b3490989a189bcc51b18647073f988d4 (diff)
downloadpdfium-05dcbc931eacb72f1a11835ae282fc8434b7a434.tar.xz
Make sure all CPDF_ColorSpace instances consistently call v_Load(). Change-Id: I15c1608c36781a03131884abceff1ecc4a9a1eb1 Reviewed-on: https://pdfium-review.googlesource.com/21911 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pagemodule.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_pagemodule.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_pagemodule.cpp b/core/fpdfapi/page/cpdf_pagemodule.cpp
index c302b70c5b..3b18aceb6e 100644
--- a/core/fpdfapi/page/cpdf_pagemodule.cpp
+++ b/core/fpdfapi/page/cpdf_pagemodule.cpp
@@ -10,7 +10,9 @@ CPDF_PageModule::CPDF_PageModule()
: m_StockGrayCS(PDFCS_DEVICEGRAY),
m_StockRGBCS(PDFCS_DEVICERGB),
m_StockCMYKCS(PDFCS_DEVICECMYK),
- m_StockPatternCS(nullptr) {}
+ m_StockPatternCS(nullptr) {
+ m_StockPatternCS.InitializeStockPattern();
+}
CPDF_PageModule::~CPDF_PageModule() {}