Bug 235217 Crash removing the last row from an rdfliner r=varga sr=darin a=chofmann

This commit is contained in:
neil%parkwaycc.co.uk 2004-03-31 22:13:18 +00:00
parent 59976be55f
commit 467b71575d

View File

@ -1112,7 +1112,7 @@ nsXULTreeBuilder::ReplaceMatch(nsIRDFResource* aMember,
// Remove the rows from the view
PRInt32 row = iter.GetRowIndex();
PRInt32 delta = mRows.GetSubtreeSizeFor(iter);
if (mRows.RemoveRowAt(iter) == 0) {
if (mRows.RemoveRowAt(iter) == 0 && iter.GetRowIndex() >= 0) {
// In this case iter now points to its parent
// Invalidate the row's cached fill state
iter->mContainerFill = nsTreeRows::eContainerFill_Unknown;