summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-20 09:45:24 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-20 09:45:24 -0800
commitc7e4c4fe17f5c05671183a47541ea17f3dce75b5 (patch)
tree720c1c55e5125c6d5ebe85839137fc3a15496ca5 /fpdfsdk/src/fpdfview.cpp
parent7386e293a2b67794e6af02d0b71020a4bc987ce0 (diff)
downloadpdfium-c7e4c4fe17f5c05671183a47541ea17f3dce75b5.tar.xz
Update XFA fpdfsdk to match master
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1465663002 .
Diffstat (limited to 'fpdfsdk/src/fpdfview.cpp')
-rw-r--r--fpdfsdk/src/fpdfview.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
index 78ef65f018..8da56dc3b6 100644
--- a/fpdfsdk/src/fpdfview.cpp
+++ b/fpdfsdk/src/fpdfview.cpp
@@ -192,8 +192,8 @@ DLLEXPORT void STDCALL FPDF_InitLibrary() {
FPDF_InitLibraryWithConfig(nullptr);
}
-DLLEXPORT void STDCALL
-FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* cfg) {
+DLLEXPORT void STDCALL FPDF_InitLibraryWithConfig(
+ const FPDF_LIBRARY_CONFIG* cfg) {
g_pCodecModule = new CCodec_ModuleMgr();
CFX_GEModule::Create(cfg ? cfg->m_pUserFontPaths : nullptr);
@@ -852,9 +852,8 @@ void FPDF_RenderPage_Retail(CRenderContext* pContext,
pContext->m_pRenderer = new CPDF_ProgressiveRenderer(
pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions);
pContext->m_pRenderer->Start(pause);
- if (bNeedToRestore) {
+ if (bNeedToRestore)
pContext->m_pDevice->RestoreState();
- }
}
DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document,