summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_editpage.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-07 23:28:36 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-07 23:28:36 +0000
commit4c31a13a704850fdf301fb561ba966baa3c7c29c (patch)
tree6d7a7d667008b673d0ccb8047392956b9e8cb32d /fpdfsdk/fpdf_editpage.cpp
parent0cc77c9ef74f527a6887d9a2e8ebcb6412615f30 (diff)
downloadpdfium-4c31a13a704850fdf301fb561ba966baa3c7c29c.tar.xz
Make CPDF_PageObjectHolder::m_iTransparency protected.
Also initialize members in the header. Change-Id: Id814c4c5042c9d4989fa92b78f68c17f4949f09d Reviewed-on: https://pdfium-review.googlesource.com/32111 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_editpage.cpp')
-rw-r--r--fpdfsdk/fpdf_editpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp
index f38c4ff800..3f1098c371 100644
--- a/fpdfsdk/fpdf_editpage.cpp
+++ b/fpdfsdk/fpdf_editpage.cpp
@@ -384,7 +384,7 @@ FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObject) {
if (pPageObj->IsForm()) {
const CPDF_Form* pForm = pPageObj->AsForm()->form();
if (pForm) {
- int trans = pForm->m_iTransparency;
+ int trans = pForm->GetTransparency();
if ((trans & PDFTRANS_ISOLATED) || (trans & PDFTRANS_GROUP))
return true;
}