ImageFunctionsView: Switch back to NotifyNodesRemoved().

This commit is contained in:
Rene Gollent 2013-05-15 20:15:51 -04:00
parent 5d8c967fac
commit 66b86c6aee

View File

@ -169,8 +169,9 @@ public:
void SetImageDebugInfo(ImageDebugInfo* imageDebugInfo)
{
// unset old functions
int32 count = fChildPathComponents.CountItems();
if (fImageDebugInfo != NULL) {
for (int32 i = 0; i < fChildPathComponents.CountItems(); i++)
for (int32 i = 0; i < count; i++)
fChildPathComponents.ItemAt(i)->ReleaseReference();
fChildPathComponents.MakeEmpty();
@ -182,7 +183,7 @@ public:
// set new functions
if (fImageDebugInfo == NULL || fImageDebugInfo->CountFunctions()
== 0) {
NotifyNodesCleared();
NotifyNodesRemoved(TreeTablePath(), 0, count);
return;
}