diff options
author | thestig <thestig@chromium.org> | 2016-05-23 12:28:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-23 12:28:43 -0700 |
commit | ef4e8878cbcc19cd77f79dd8258d2a98142973f4 (patch) | |
tree | a45aa520e89967b35f9dc9347581b84615fdbaa4 /fpdfsdk/fsdk_mgr.cpp | |
parent | 09e139e231d1a94bd99ac295f3d66cb26c54ea16 (diff) | |
download | pdfium-ef4e8878cbcc19cd77f79dd8258d2a98142973f4.tar.xz |
Clean up doc_ocg.cpp.
Review-Url: https://codereview.chromium.org/2006483002
Diffstat (limited to 'fpdfsdk/fsdk_mgr.cpp')
-rw-r--r-- | fpdfsdk/fsdk_mgr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fpdfsdk/fsdk_mgr.cpp b/fpdfsdk/fsdk_mgr.cpp index e4ceadc43c..fac98d8aa3 100644 --- a/fpdfsdk/fsdk_mgr.cpp +++ b/fpdfsdk/fsdk_mgr.cpp @@ -328,8 +328,10 @@ FX_BOOL CPDFSDK_Document::ProcOpenAction() { } CPDF_OCContext* CPDFSDK_Document::GetOCContext() { - if (!m_pOccontent) - m_pOccontent.reset(new CPDF_OCContext(GetPDFDocument())); + if (!m_pOccontent) { + m_pOccontent.reset( + new CPDF_OCContext(GetPDFDocument(), CPDF_OCContext::View)); + } return m_pOccontent.get(); } |