summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfformfill.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-05-23 12:28:43 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-23 12:28:43 -0700
commitef4e8878cbcc19cd77f79dd8258d2a98142973f4 (patch)
treea45aa520e89967b35f9dc9347581b84615fdbaa4 /fpdfsdk/fpdfformfill.cpp
parent09e139e231d1a94bd99ac295f3d66cb26c54ea16 (diff)
downloadpdfium-ef4e8878cbcc19cd77f79dd8258d2a98142973f4.tar.xz
Clean up doc_ocg.cpp.
Review-Url: https://codereview.chromium.org/2006483002
Diffstat (limited to 'fpdfsdk/fpdfformfill.cpp')
-rw-r--r--fpdfsdk/fpdfformfill.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp
index f949da1019..438150974d 100644
--- a/fpdfsdk/fpdfformfill.cpp
+++ b/fpdfsdk/fpdfformfill.cpp
@@ -322,7 +322,8 @@ static void FFLCommon(FPDF_FORMHANDLE hHandle,
options.m_BackColor = 0xffffff;
}
options.m_AddFlags = flags >> 8;
- options.m_pOCContext = new CPDF_OCContext(pPage->m_pDocument);
+ options.m_pOCContext =
+ new CPDF_OCContext(pPage->m_pDocument, CPDF_OCContext::View);
#else // PDF_ENABLE_XFA
CPDFXFA_Document* pDocument = pPage->GetDocument();
if (!pDocument)
@@ -366,7 +367,7 @@ static void FFLCommon(FPDF_FORMHANDLE hHandle,
options.m_BackColor = 0xffffff;
}
options.m_AddFlags = flags >> 8;
- options.m_pOCContext = new CPDF_OCContext(pPDFDoc);
+ options.m_pOCContext = new CPDF_OCContext(pPDFDoc, CPDF_OCContext::View);
if (CPDFSDK_PageView* pPageView = pFXDoc->GetPageView(pPage))
pPageView->PageView_OnDraw(pDevice.get(), &matrix, &options, clip);