diff options
author | Lei Zhang <thestig@chromium.org> | 2015-11-02 13:27:54 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-11-02 13:27:54 -0800 |
commit | f0e2e1b09cf1ce0e537888a99f04be6f10edcada (patch) | |
tree | 84885b475c64237e2a26668c8a1b4f67421fc51d /fpdfsdk/src/fpdfformfill.cpp | |
parent | bd55239e7825b8d10255093d8c3fa03b43620a98 (diff) | |
download | pdfium-f0e2e1b09cf1ce0e537888a99f04be6f10edcada.tar.xz |
XFA: Simplify CPDFSDK_PageView::PageView_OnDraw().
The clip parameter is never NULL.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1417983006 .
Diffstat (limited to 'fpdfsdk/src/fpdfformfill.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfformfill.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfformfill.cpp b/fpdfsdk/src/fpdfformfill.cpp index dc740edfc5..f6a4f0a488 100644 --- a/fpdfsdk/src/fpdfformfill.cpp +++ b/fpdfsdk/src/fpdfformfill.cpp @@ -317,7 +317,7 @@ DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle, options.m_pOCContext = new CPDF_OCContext(pPDFDoc); if (CPDFSDK_PageView* pPageView = pFXDoc->GetPageView((CPDFXFA_Page*)page)) - pPageView->PageView_OnDraw(pDevice.get(), &matrix, &options, &clip); + pPageView->PageView_OnDraw(pDevice.get(), &matrix, &options, clip); pDevice->RestoreState(); delete options.m_pOCContext; |