summaryrefslogtreecommitdiff
path: root/core/fxge/win32/cfx_psrenderer.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-12-06 22:09:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-06 22:09:40 +0000
commit11506300e6a64de2aaba2abbea23d69b98627412 (patch)
treeb6822f6629ef9ecca1de1b71f82a94abacf95950 /core/fxge/win32/cfx_psrenderer.cpp
parentfd9e0b8f5f9204a46090c3b392b9a4322a6ea09d (diff)
downloadpdfium-11506300e6a64de2aaba2abbea23d69b98627412.tar.xz
Fix ps rendering.chromium/3287
Also fix other occurrences that were missed. Bug:pdfium:947 Change-Id: Ic7e909ff9ce3abdf91e8e9ba108c84ad28b2fd65 Reviewed-on: https://pdfium-review.googlesource.com/20472 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxge/win32/cfx_psrenderer.cpp')
-rw-r--r--core/fxge/win32/cfx_psrenderer.cpp3
1 files changed, 1 insertions, 2 deletions
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";