Index: core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp |
diff --git a/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp b/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp |
index 08581322916bd2361aa775ff79c2bdcf68ff8f29..de84f298650df2ecdaba93ee2fd702e8f18b546c 100644 |
--- a/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp |
+++ b/core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp |
@@ -22,7 +22,7 @@ CPDF_ShadingObject* CPDF_ShadingObject::Clone() const { |
if (obj->m_pShading && obj->m_pShading->document()) { |
CPDF_DocPageData* pDocPageData = obj->m_pShading->document()->GetPageData(); |
CPDF_Pattern* pattern = pDocPageData->GetPattern( |
- obj->m_pShading->m_pShadingObj, m_pShading->m_bShadingObj, |
+ obj->m_pShading->GetShadingObject(), m_pShading->IsShadingObject(), |
obj->m_pShading->parent_matrix()); |
obj->m_pShading = pattern ? pattern->AsShadingPattern() : nullptr; |
} |