Index: core/fpdfdoc/cpdf_annotlist.cpp |
diff --git a/core/fpdfdoc/cpdf_annotlist.cpp b/core/fpdfdoc/cpdf_annotlist.cpp |
index 4c569892c2056c9b235d822756657811db36a800..61122ed59b99ee32a031b0a8a8f6f8e5f227d3d8 100644 |
--- a/core/fpdfdoc/cpdf_annotlist.cpp |
+++ b/core/fpdfdoc/cpdf_annotlist.cpp |
@@ -110,7 +110,7 @@ void CPDF_AnnotList::DisplayPass(CPDF_Page* pPage, |
CPDF_RenderOptions* pOptions, |
FX_RECT* clip_rect) { |
for (const auto& pAnnot : m_AnnotList) { |
- bool bWidget = pAnnot->GetSubtype() == "Widget"; |
+ bool bWidget = pAnnot->GetSubtype() == CPDF_Annot::Subtype::WIDGET; |
if ((bWidgetPass && !bWidget) || (!bWidgetPass && bWidget)) |
continue; |