Index: fpdfsdk/src/fpdf_transformpage.cpp |
diff --git a/fpdfsdk/src/fpdf_transformpage.cpp b/fpdfsdk/src/fpdf_transformpage.cpp |
index 46640370875f129a4ff4b442cc5c875d57106ba0..9f500b27687a8b829b4d8553e8bcfe43aaaea600 100644 |
--- a/fpdfsdk/src/fpdf_transformpage.cpp |
+++ b/fpdfsdk/src/fpdf_transformpage.cpp |
@@ -200,7 +200,7 @@ FPDFPageObj_TransformClipPath(FPDF_PAGEOBJECT page_object, |
// Special treatment to shading object, because the ClipPath for shading |
// object is already transformed. |
- if (pPageObj->m_Type != CPDF_PageObject::SHADING) |
+ if (!pPageObj->IsShading()) |
pPageObj->TransformClipPath(matrix); |
pPageObj->TransformGeneralState(matrix); |
} |