Index: fpdfsdk/pdfwindow/PWL_Edit.cpp |
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp |
index f53f263470ecb1234b5f8fa0cfc044946cc7a47a..15c9985af19639cdedc7d596c62677b354149fac 100644 |
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp |
+++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp |
@@ -50,7 +50,7 @@ void CPWL_Edit::SetText(const FX_WCHAR* csText) { |
swText.Empty(); |
for (int32_t i = 0; i < nCount; i++) { |
- if (CXML_Element* pSubElement = pXML->GetElement(i)) { |
+ if (CXML_Element* pSubElement = pXML->GetObjectBy(i)) { |
CFX_ByteString tag = pSubElement->GetTagName(); |
if (tag.EqualNoCase("p")) { |
int nChild = pSubElement->CountChildren(); |