mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 11:45:31 +00:00
Bug 235217 Crash removing the last row from an rdfliner r=varga sr=darin a=chofmann
This commit is contained in:
parent
59976be55f
commit
467b71575d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user