summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fsdk_mgr.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-12 15:47:07 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-12 15:47:07 -0700
commita8a39e25af3c19bb91434fdf367cffa0e1536934 (patch)
treed6bfa30a756014ec79dfce75d6658ecf3778594a /fpdfsdk/src/fsdk_mgr.cpp
parent5ef9faa8e8f5593556d78f775d86f1e52e4c341a (diff)
downloadpdfium-a8a39e25af3c19bb91434fdf367cffa0e1536934.tar.xz
Allow building of XFA branch without XFA
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1399833002 .
Diffstat (limited to 'fpdfsdk/src/fsdk_mgr.cpp')
-rw-r--r--fpdfsdk/src/fsdk_mgr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp
index 4c684cfb69..2ab9d8bf78 100644
--- a/fpdfsdk/src/fsdk_mgr.cpp
+++ b/fpdfsdk/src/fsdk_mgr.cpp
@@ -694,6 +694,7 @@ void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice,
if (pPage == NULL)
return;
+#ifdef PDF_ENABLE_XFA
if (pPage->GetDocument()->GetDocType() == DOCTYPE_DYNIMIC_XFA) {
CFX_Graphics gs;
gs.Create(pDevice);
@@ -717,6 +718,8 @@ void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice,
pRenderContext->Release();
return;
}
+#endif // PDF_ENABLE_XFA
+
// for pdf/static xfa.
CPDFSDK_AnnotIterator annotIterator(this, TRUE);
CPDFSDK_Annot* pSDKAnnot = NULL;