Index: fpdfsdk/cpdfsdk_pageview.cpp |
diff --git a/fpdfsdk/cpdfsdk_pageview.cpp b/fpdfsdk/cpdfsdk_pageview.cpp |
index 7fed794d288b74f07bd41facf1b9a819dd2cbceb..a342e017e494b6da0fa66e29ad9daa48274563e2 100644 |
--- a/fpdfsdk/cpdfsdk_pageview.cpp |
+++ b/fpdfsdk/cpdfsdk_pageview.cpp |
@@ -231,7 +231,7 @@ CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(CXFA_FFWidget* pPDFAnnot) { |
#endif // PDF_ENABLE_XFA |
CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(CPDF_Dictionary* pDict) { |
- return pDict ? AddAnnot(pDict->GetStringBy("Subtype").c_str(), pDict) |
+ return pDict ? AddAnnot(pDict->GetStringFor("Subtype").c_str(), pDict) |
: nullptr; |
} |