From 3d1ab2d09ab96a6393c0612d9c4153d10d5028ce Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 10 May 2018 18:07:35 +0000 Subject: Add CPDF_Transparency. Encapsulates transparency status instead of having it be a raw int. Change-Id: I8b10dafa97da112795cf84c46cf416a0294551d5 Reviewed-on: https://pdfium-review.googlesource.com/32194 Commit-Queue: Lei Zhang Reviewed-by: dsinclair --- fpdfsdk/fpdf_editpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp index ec29891fdf..1a9198b291 100644 --- a/fpdfsdk/fpdf_editpage.cpp +++ b/fpdfsdk/fpdf_editpage.cpp @@ -393,8 +393,8 @@ FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObject) { if (pPageObj->IsForm()) { const CPDF_Form* pForm = pPageObj->AsForm()->form(); if (pForm) { - int trans = pForm->GetTransparency(); - if ((trans & PDFTRANS_ISOLATED) || (trans & PDFTRANS_GROUP)) + const CPDF_Transparency& trans = pForm->GetTransparency(); + if (trans.IsGroup() || trans.IsIsolated()) return true; } } -- cgit v1.2.3