Index: fpdfsdk/src/fsdk_mgr.cpp |
diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp |
index c4cee6f4d82e808ab6b38863eb7a42ac84911d14..f134b790a931454e28ccb2f5a353ef6bb650a2b6 100644 |
--- a/fpdfsdk/src/fsdk_mgr.cpp |
+++ b/fpdfsdk/src/fsdk_mgr.cpp |
@@ -678,7 +678,10 @@ void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice, CPDF_Matrix* p |
gs.Create(pDevice); |
if (pClip) { |
CFX_RectF rectClip; |
- rectClip.Set(pClip->left, pClip->top, pClip->Width(), pClip->Height()); |
+ rectClip.Set(static_cast<FX_FLOAT>(pClip->left), |
+ static_cast<FX_FLOAT>(pClip->top), |
+ static_cast<FX_FLOAT>(pClip->Width()), |
+ static_cast<FX_FLOAT>(pClip->Height())); |
gs.SetClipRect(rectClip); |
} |
IXFA_RenderContext* pRenderContext = XFA_RenderContext_Create(); |