summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/font')
-rw-r--r--core/fpdfapi/font/cpdf_type3font.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/font/cpdf_type3font.cpp b/core/fpdfapi/font/cpdf_type3font.cpp
index e79f16a001..8a0a115992 100644
--- a/core/fpdfapi/font/cpdf_type3font.cpp
+++ b/core/fpdfapi/font/cpdf_type3font.cpp
@@ -17,6 +17,8 @@
#include "core/fxcrt/fx_system.h"
#include "third_party/base/stl_util.h"
+#define FPDF_MAX_TYPE3_FORM_LEVEL 4
+
CPDF_Type3Font::CPDF_Type3Font()
: m_pCharProcs(nullptr),
m_pPageResources(nullptr),
@@ -90,7 +92,7 @@ void CPDF_Type3Font::CheckType3FontMetrics() {
}
CPDF_Type3Char* CPDF_Type3Font::LoadChar(uint32_t charcode) {
- if (m_CharLoadingDepth >= _FPDF_MAX_TYPE3_FORM_LEVEL_)
+ if (m_CharLoadingDepth >= FPDF_MAX_TYPE3_FORM_LEVEL)
return nullptr;
auto it = m_CacheMap.find(charcode);