From 11506300e6a64de2aaba2abbea23d69b98627412 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Wed, 6 Dec 2017 22:09:40 +0000 Subject: Fix ps rendering. Also fix other occurrences that were missed. Bug:pdfium:947 Change-Id: Ic7e909ff9ce3abdf91e8e9ba108c84ad28b2fd65 Reviewed-on: https://pdfium-review.googlesource.com/20472 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- core/fxge/win32/cfx_psrenderer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') diff --git a/core/fxge/win32/cfx_psrenderer.cpp b/core/fxge/win32/cfx_psrenderer.cpp index ecfab49c38..1513c07c68 100644 --- a/core/fxge/win32/cfx_psrenderer.cpp +++ b/core/fxge/win32/cfx_psrenderer.cpp @@ -676,8 +676,7 @@ bool CFX_PSRenderer::DrawText(int nChars, last_fontnum = ps_fontnum; } buf << pCharPos[i].m_Origin.x << " " << pCharPos[i].m_Origin.y << " m"; - ByteString hex; - hex.Format("<%02X>", ps_glyphindex); + ByteString hex = ByteString::Format("<%02X>", ps_glyphindex); buf << hex.AsStringView() << "Tj\n"; } buf << "Q\n"; -- cgit v1.2.3