summaryrefslogtreecommitdiff
path: root/xfa/fwl
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-21 09:50:55 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-21 15:00:47 +0000
commit8c6dc95678810e3a054744a6a229606ac0d75134 (patch)
tree8aaaeeeb754884f868b66fa9ece3f2ffbe8d7857 /xfa/fwl
parent2f7653c0d8fe60f1a4956382dcb3d73822694dda (diff)
downloadpdfium-8c6dc95678810e3a054744a6a229606ac0d75134.tar.xz
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 <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl')
-rw-r--r--xfa/fwl/theme/cfwl_widgettp.cpp3
1 files changed, 2 insertions, 1 deletions
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() {