From 8c6dc95678810e3a054744a6a229606ac0d75134 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 21 Aug 2017 09:50:55 -0400 Subject: Cleanup CFDE_TextOut This CL cleans up formatting and simplifies logic in CFDE_TextOut. Change-Id: Ib675a35da79df77854f51e86bf24e5dc90b33b06 Reviewed-on: https://pdfium-review.googlesource.com/11334 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fwl/theme/cfwl_widgettp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/fwl/theme') diff --git a/xfa/fwl/theme/cfwl_widgettp.cpp b/xfa/fwl/theme/cfwl_widgettp.cpp index 48d4118ed9..4d6503f845 100644 --- a/xfa/fwl/theme/cfwl_widgettp.cpp +++ b/xfa/fwl/theme/cfwl_widgettp.cpp @@ -53,7 +53,8 @@ void CFWL_WidgetTP::DrawText(CFWL_ThemeText* pParams) { pMatrix->Concat(*pGraphics->GetMatrix()); m_pTextOut->SetMatrix(*pMatrix); m_pTextOut->DrawLogicText(pGraphics->GetRenderDevice(), - pParams->m_wsText.c_str(), iLen, pParams->m_rtPart); + CFX_WideStringC(pParams->m_wsText.c_str(), iLen), + pParams->m_rtPart); } void CFWL_WidgetTP::InitializeArrowColorData() { -- cgit v1.2.3