Index: xfa/src/fxgraphics/src/fx_graphics.cpp |
diff --git a/xfa/src/fxgraphics/src/fx_graphics.cpp b/xfa/src/fxgraphics/src/fx_graphics.cpp |
index c5eac42e87c8636d484cbd5e7eed04ecc1dae02d..e223a74921fc66ba8893865600f0ea77060f5b93 100644 |
--- a/xfa/src/fxgraphics/src/fx_graphics.cpp |
+++ b/xfa/src/fxgraphics/src/fx_graphics.cpp |
@@ -1098,7 +1098,7 @@ FX_ERR CFX_Graphics::CalcTextInfo(const CFX_WideString& text, |
FX_DWORD* charCodes, |
FXTEXT_CHARPOS* charPos, |
CFX_RectF& rect) { |
- IFX_FontEncoding* encoding = FXGE_CreateUnicodeEncoding(_info._font); |
+ CFX_UnicodeEncoding* encoding = new CFX_UnicodeEncoding(_info._font); |
Tom Sepez
2015/08/17 23:49:29
same here.
Lei Zhang
2015/08/18 01:36:39
Done.
|
int32_t length = text.GetLength(); |
FX_FLOAT penX = (FX_FLOAT)rect.left; |
FX_FLOAT penY = (FX_FLOAT)rect.top; |