diff options
Diffstat (limited to 'fpdfsdk/javascript/Document.cpp')
-rw-r--r-- | fpdfsdk/javascript/Document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp index 4bf1afd5a3..1a0a53cce2 100644 --- a/fpdfsdk/javascript/Document.cpp +++ b/fpdfsdk/javascript/Document.cpp @@ -1543,7 +1543,7 @@ int Document::CountWords(CPDF_TextObject* pTextObj) { uint32_t charcode = CPDF_Font::kInvalidCharCode; FX_FLOAT kerning; - pTextObj->GetCharInfo(i, charcode, kerning); + pTextObj->GetCharInfo(i, &charcode, &kerning); CFX_WideString swUnicode = pFont->UnicodeFromCharCode(charcode); uint16_t unicode = 0; @@ -1576,7 +1576,7 @@ CFX_WideString Document::GetObjWordStr(CPDF_TextObject* pTextObj, uint32_t charcode = CPDF_Font::kInvalidCharCode; FX_FLOAT kerning; - pTextObj->GetCharInfo(i, charcode, kerning); + pTextObj->GetCharInfo(i, &charcode, &kerning); CFX_WideString swUnicode = pFont->UnicodeFromCharCode(charcode); uint16_t unicode = 0; |