| Index: fpdfsdk/fxedit/fxet_edit.cpp | 
| diff --git a/fpdfsdk/fxedit/fxet_edit.cpp b/fpdfsdk/fxedit/fxet_edit.cpp | 
| index 3d7e485f356fb0534e8f68b08230750aa032614f..f45f9ea5f242c2a8a45b9d66a98077edababeeb6 100644 | 
| --- a/fpdfsdk/fxedit/fxet_edit.cpp | 
| +++ b/fpdfsdk/fxedit/fxet_edit.cpp | 
| @@ -110,7 +110,7 @@ int32_t CFX_Edit_Provider::GetCharWidth(int32_t nFontIndex, | 
| else | 
| charcode = m_pFontMap->CharCodeFromUnicode(nFontIndex, word); | 
|  | 
| -    if (charcode != -1) | 
| +    if (charcode != CPDF_Font::kInvalidCharCode) | 
| return pPDFFont->GetCharWidthF(charcode); | 
| } | 
|  | 
|  |