Index: core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
index be038004ac4e0bf31a9e0ead365bd198169ec806..81cf92ee05549a13850b85aeea21aaefe765b13e 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
@@ -246,7 +246,7 @@ void CPDF_TextObject::CalcPositionData(FX_FLOAT* pTextAdvanceX, |
m_nChars == 1 ? (FX_DWORD)(uintptr_t)m_pCharCodes : m_pCharCodes[i]; |
if (i > 0) { |
if (charcode == (FX_DWORD)-1) { |
- curpos -= FXSYS_Mul(m_pCharPos[i - 1], fontsize) / 1000; |
+ curpos -= (m_pCharPos[i - 1] * fontsize) / 1000; |
continue; |
} |
m_pCharPos[i - 1] = curpos; |
@@ -336,7 +336,7 @@ void CPDF_TextObject::CalcPositionData(FX_FLOAT* pTextAdvanceX, |
max_x = max_x * fontsize / 1000; |
} else { |
if (pTextAdvanceX) { |
- *pTextAdvanceX = FXSYS_Mul(curpos, horz_scale); |
+ *pTextAdvanceX = curpos * horz_scale; |
} |
if (pTextAdvanceY) { |
*pTextAdvanceY = 0; |