Index: xfa/fxfa/parser/xfa_layout_appadapter.cpp |
diff --git a/xfa/fxfa/parser/xfa_layout_appadapter.cpp b/xfa/fxfa/parser/xfa_layout_appadapter.cpp |
index 252774ca15cbb1a5f2aeb2924b7e608e5a88579b..f85f96da2f15e8522dd2ca9096bf85b3ed26b4e8 100644 |
--- a/xfa/fxfa/parser/xfa_layout_appadapter.cpp |
+++ b/xfa/fxfa/parser/xfa_layout_appadapter.cpp |
@@ -34,7 +34,7 @@ void XFA_ReleaseLayoutItem(CXFA_LayoutItem* pLayoutItem) { |
pNode = pNext; |
} |
pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem); |
- if (pLayoutItem->m_pFormNode->GetClassID() == XFA_Element::PageArea) { |
+ if (pLayoutItem->m_pFormNode->GetElementType() == XFA_Element::PageArea) { |
pNotify->OnPageEvent(static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem), |
XFA_PAGEVIEWEVENT_PostRemoved); |
} |