Index: xfa/fxfa/parser/cxfa_widgetdata.cpp |
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp |
index 681516d8e8cc802d2f3db626490ac85b6720311a..447b0c712e15449a525a7f851632cbc0c96ceac0 100644 |
--- a/xfa/fxfa/parser/cxfa_widgetdata.cpp |
+++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp |
@@ -927,9 +927,8 @@ void CXFA_WidgetData::InsertItem(const CFX_WideString& wsLabel, |
if (!bNotify) |
return; |
- m_pNode->GetDocument()->GetNotify()->OnWidgetDataEvent( |
- this, XFA_WIDGETEVENT_ListItemAdded, (void*)wsLabel.c_str(), |
- (void*)wsValue.c_str(), (void*)(uintptr_t)nIndex); |
+ m_pNode->GetDocument()->GetNotify()->OnWidgetListItemAdded( |
+ this, wsLabel.c_str(), wsValue.c_str(), nIndex); |
} |
void CXFA_WidgetData::GetItemLabel(const CFX_WideStringC& wsValue, |
@@ -1053,11 +1052,8 @@ FX_BOOL CXFA_WidgetData::DeleteItem(int32_t nIndex, |
} |
} |
} |
- if (!bNotify) |
- return TRUE; |
- |
- m_pNode->GetDocument()->GetNotify()->OnWidgetDataEvent( |
- this, XFA_WIDGETEVENT_ListItemRemoved, (void*)(uintptr_t)nIndex); |
+ if (bNotify) |
+ m_pNode->GetDocument()->GetNotify()->OnWidgetListItemRemoved(this, nIndex); |
return TRUE; |
} |