Index: fpdfsdk/pdfwindow/PWL_Edit.cpp |
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp |
index 4b115d345b3c42ed82fba12e5891fee7ea6ff9c2..ed5c4564d62c305dbb7d8a60ef1149c276a0fe0f 100644 |
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp |
+++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp |
@@ -564,7 +564,7 @@ void CPWL_Edit::SetLimitChar(int32_t nLimitChar) { |
void CPWL_Edit::ReplaceSel(const CFX_WideString& wsText) { |
m_pEdit->Clear(); |
- m_pEdit->InsertText(wsText, DEFAULT_CHARSET); |
+ m_pEdit->InsertText(wsText, FXFONT_DEFAULT_CHARSET); |
} |
CFX_FloatRect CPWL_Edit::GetFocusRect() const { |
@@ -708,7 +708,8 @@ FX_BOOL CPWL_Edit::OnChar(uint16_t nChar, uint32_t nFlag) { |
if (IPVT_FontMap* pFontMap = GetFontMap()) { |
int32_t nOldCharSet = GetCharSet(); |
- int32_t nNewCharSet = pFontMap->CharSetFromUnicode(nChar, DEFAULT_CHARSET); |
+ int32_t nNewCharSet = |
+ pFontMap->CharSetFromUnicode(nChar, FXFONT_DEFAULT_CHARSET); |
if (nOldCharSet != nNewCharSet) { |
SetCharSet(nNewCharSet); |
} |