| Index: core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp
|
| index bcb81966622b830eb4ff10f6f08dd074e4324c2a..67ea4fee658ed59a243013e3111a6ffaf1b63ec9 100644
|
| --- a/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp
|
| +++ b/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp
|
| @@ -8,7 +8,7 @@
|
| #include "pageint.h"
|
|
|
| CPDF_Pattern::CPDF_Pattern(const CFX_AffineMatrix* pParentMatrix) :
|
| - m_pPatternObj(NULL), m_PatternType(PATTERN_TILING), m_pDocument(NULL)
|
| + m_pPatternObj(NULL), m_PatternType(PATTERN_TILING), m_pDocument(NULL), m_bForceClear(FALSE)
|
| {
|
| if (pParentMatrix) {
|
| m_ParentMatrix = *pParentMatrix;
|
| @@ -97,7 +97,7 @@ void CPDF_ShadingPattern::Clear()
|
| m_pFunctions[i] = NULL;
|
| }
|
| CPDF_ColorSpace* pCS = m_pCS;
|
| - if (pCS && m_pDocument) {
|
| + if (!m_bForceClear && pCS && m_pDocument) {
|
| m_pDocument->GetPageData()->ReleaseColorSpace(pCS->GetArray());
|
| }
|
| m_ShadingType = 0;
|
|
|