summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-02-09 14:08:53 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-09 19:31:58 +0000
commit687a79c5ce07bc338192f19d8452edefaf27dd76 (patch)
tree4d16587c3fa4d36e78fd21cda614c7a734da2b01 /xfa
parentafb44560a21298b3588b36cbaf45e2be50f2e75b (diff)
downloadpdfium-687a79c5ce07bc338192f19d8452edefaf27dd76.tar.xz
Cleanup CFX_Matrix related methods
This CL removes unused CFX_Matrix methods and cleans up the implementaion of others. Change-Id: I72d1d10d4a45cc9341a980054df5225e52a0c4f2 Reviewed-on: https://pdfium-review.googlesource.com/2574 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxgraphics/cfx_graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxgraphics/cfx_graphics.cpp b/xfa/fxgraphics/cfx_graphics.cpp
index 4a7041d144..f1abfb7cb5 100644
--- a/xfa/fxgraphics/cfx_graphics.cpp
+++ b/xfa/fxgraphics/cfx_graphics.cpp
@@ -1267,7 +1267,7 @@ FWL_Error CFX_Graphics::RenderDeviceShowText(const CFX_PointF& point,
CalcTextInfo(text, charCodes, charPos, rect);
CFX_Matrix m(m_info.CTM.a, m_info.CTM.b, m_info.CTM.c, m_info.CTM.d,
m_info.CTM.e, m_info.CTM.f);
- m.Translate(0, m_info.fontSize * m_info.fontHScale);
+ m.Translate(0.0f, m_info.fontSize * m_info.fontHScale);
if (matrix) {
m.Concat(*matrix);
}