Index: fpdfsdk/src/pdfwindow/PWL_Utils.cpp |
diff --git a/fpdfsdk/src/pdfwindow/PWL_Utils.cpp b/fpdfsdk/src/pdfwindow/PWL_Utils.cpp |
index db1323e78a0ed10e08cda807c859ed4e1383e8ee..926ab3f0b7c461ea7b14c15dc8fe2e8ec0ade13c 100644 |
--- a/fpdfsdk/src/pdfwindow/PWL_Utils.cpp |
+++ b/fpdfsdk/src/pdfwindow/PWL_Utils.cpp |
@@ -1696,9 +1696,7 @@ void CPWL_Utils::DrawEditSpellCheck(CFX_RenderDevice* pDevice, |
if (!rcClip.IsEmpty()) { |
CFX_FloatRect rcTemp = rcClip; |
pUser2Device->TransformRect(rcTemp); |
- pDevice->SetClip_Rect(FX_RECT((int32_t)rcTemp.left, (int32_t)rcTemp.top, |
- (int32_t)rcTemp.right, |
- (int32_t)rcTemp.bottom)); |
+ pDevice->SetClip_Rect(rcTemp.ToFxRect()); |
} |
if (IFX_Edit_Iterator* pIterator = pEdit->GetIterator()) { |