Index: fpdfsdk/fsdk_mgr.cpp |
diff --git a/fpdfsdk/fsdk_mgr.cpp b/fpdfsdk/fsdk_mgr.cpp |
index 3412516f652abc9ba2ed2797961ba9171e0d49a3..7240fe1d0b84fad85404abb44dfbf2007db1497e 100644 |
--- a/fpdfsdk/fsdk_mgr.cpp |
+++ b/fpdfsdk/fsdk_mgr.cpp |
@@ -840,7 +840,8 @@ 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"), pDict) : nullptr; |
+ return pDict ? AddAnnot(pDict->GetStringBy("Subtype").c_str(), pDict) |
+ : nullptr; |
} |
CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(const FX_CHAR* lpSubType, |