Index: core/fpdfdoc/cpvt_generateap.cpp |
diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp |
index a837c35801d14bbe606e44739f0304d80b9d5b2b..7b4ad2ff4f6260378ad9fecaed2c9eba04103a68 100644 |
--- a/core/fpdfdoc/cpvt_generateap.cpp |
+++ b/core/fpdfdoc/cpvt_generateap.cpp |
@@ -451,7 +451,7 @@ FX_BOOL GenerateWidgetAP(CPDF_Document* pDoc, |
} // namespace |
FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict) { |
- if (!pAnnotDict || pAnnotDict->GetConstStringBy("Subtype") != "Widget") { |
+ if (!pAnnotDict || pAnnotDict->GetStringBy("Subtype") != "Widget") { |
return FALSE; |
} |
CFX_ByteString field_type = FPDF_GetFieldAttr(pAnnotDict, "FT")->GetString(); |