Bug 471301 - nsNSSASN1Tree::LoadASN1Structure is missing calls to BeginUpdateBatch/EndUpdateBatch. r=kaie

This commit is contained in:
timeless@bemail.org 2009-09-30 10:04:17 +02:00
Родитель 7626b3040a
Коммит bf6c9b1c41
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -170,10 +170,12 @@ nsNSSASN1Tree::LoadASN1Structure(nsIASN1Object *asn1Object)
if (redraw) {
// The number of rows in the new content.
PRInt32 newRows = CountVisibleNodes(mTopNode);
mTree->BeginUpdateBatch();
// Erase all of the old rows.
mTree->RowCountChanged(0, rowsToDelete);
// Replace them with the new contents
mTree->RowCountChanged(0, newRows);
mTree->EndUpdateBatch();
}
return NS_OK;