diff options
Diffstat (limited to 'xfa/fwl')
-rw-r--r-- | xfa/fwl/cfwl_edit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index 8c03402f23..28948cca21 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp @@ -566,9 +566,10 @@ void CFWL_Edit::DrawContent(CFX_Graphics* pGraphics, if (!pRenderDev) return; - auto pRenderDevice = pdfium::MakeUnique<CFDE_RenderDevice>(pRenderDev, false); - auto pRenderContext = pdfium::MakeUnique<CFDE_RenderContext>(); + auto pRenderDevice = pdfium::MakeUnique<CFDE_RenderDevice>(pRenderDev); pRenderDevice->SetClipRect(rtClip); + + auto pRenderContext = pdfium::MakeUnique<CFDE_RenderContext>(); pRenderContext->StartRender(pRenderDevice.get(), pPage, mt); pRenderContext->DoRender(); |