summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjx_node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp
index 17553c940a..dc32e205bf 100644
--- a/fxjs/cjx_node.cpp
+++ b/fxjs/cjx_node.cpp
@@ -378,7 +378,7 @@ int32_t CJX_Node::InstanceManager_SetInstances(int32_t iDesired) {
break;
}
if (pRemoveInstance->GetNameHash() == dInstanceNameHash) {
- GetXFANode()->RemoveItem(pRemoveInstance);
+ GetXFANode()->RemoveItem(pRemoveInstance, true);
iCount--;
}
}
@@ -2510,7 +2510,7 @@ void CJX_Node::Script_InstanceManager_RemoveInstance(
return;
}
CXFA_Node* pRemoveInstance = GetXFANode()->GetItem(iIndex);
- GetXFANode()->RemoveItem(pRemoveInstance);
+ GetXFANode()->RemoveItem(pRemoveInstance, true);
CXFA_FFNotify* pNotify = GetDocument()->GetNotify();
if (pNotify) {
for (int32_t i = iIndex; i < iCount - 1; i++) {