Index: fpdfsdk/cpdfsdk_interform.cpp |
diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp |
index 1346deb2bcdcab756d9d8c84bbb0bbf3a4fdb1e2..345487ad498e7df6d640926d4a2653b5fa033212 100644 |
--- a/fpdfsdk/cpdfsdk_interform.cpp |
+++ b/fpdfsdk/cpdfsdk_interform.cpp |
@@ -71,8 +71,8 @@ FX_BOOL CPDFSDK_InterForm::HighlightWidgets() { |
CPDFSDK_Widget* CPDFSDK_InterForm::GetSibling(CPDFSDK_Widget* pWidget, |
FX_BOOL bNext) const { |
- std::unique_ptr<CBA_AnnotIterator> pIterator( |
- new CBA_AnnotIterator(pWidget->GetPageView(), "Widget")); |
+ std::unique_ptr<CBA_AnnotIterator> pIterator(new CBA_AnnotIterator( |
+ pWidget->GetPageView(), CPDF_Annot::Subtype::WIDGET)); |
if (bNext) |
return static_cast<CPDFSDK_Widget*>(pIterator->GetNextAnnot(pWidget)); |