Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
index 2db8d6095f9399ca838091cd4e1e20a4cea5746e..e09297fc8d38046c724cfd82a0d67460641e9ae3 100644 |
--- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
+++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
@@ -521,7 +521,8 @@ static FX_WORD FX_GetCsFromLangCode(uint32_t uCode) |
const FX_LANG2CS &charset = gs_FXLang2CharsetTable[iMid]; |
if (uCode == charset.uLang) { |
return charset.uCharset; |
- } else if (uCode < charset.uLang) { |
+ } |
+ if (uCode < charset.uLang) { |
iEnd = iMid - 1; |
} else { |
iStart = iMid + 1; |