Index: core/src/fpdfapi/fpdf_font/fpdf_font.cpp |
diff --git a/core/src/fpdfapi/fpdf_font/fpdf_font.cpp b/core/src/fpdfapi/fpdf_font/fpdf_font.cpp |
index 9ed5d8ff1c6e586d55eb5b7790a601cb88100d90..8037a8c674e811202d43d3c91bcff16a5e1df452 100644 |
--- a/core/src/fpdfapi/fpdf_font/fpdf_font.cpp |
+++ b/core/src/fpdfapi/fpdf_font/fpdf_font.cpp |
@@ -555,13 +555,12 @@ static FX_DWORD _StringToCode(const CFX_ByteStringC& str) |
result = result * 16 + digit; |
} |
return result; |
- } else { |
- for (int i = 0; i < len; i ++) { |
- if (buf[i] < '0' || buf[i] > '9') { |
- break; |
- } |
- result = result * 10 + buf[i] - '0'; |
+ } |
+ for (int i = 0; i < len; i ++) { |
+ if (buf[i] < '0' || buf[i] > '9') { |
+ break; |
} |
+ result = result * 10 + buf[i] - '0'; |
} |
return result; |
} |