Closed Bug 83739 Opened 24 years ago Closed 24 years ago

nsOutlinerRows::Subtree::Clear() doesn't reset mSubtreeSize

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: hewitt, Assigned: hewitt)

References

Details

Attachments

(1 file)

I ran into this problem while attempting to modify a <template/> inside of an rdf-based outliner, and then call rebuild(). I noticed that the row count of the outliner builder doubles each time you call rebuild, causing a ton of "index of of range assertions", because the row count is derived from the subtree size of the root subtree. The subtree size simply doesn't get reset to 0 inside of nsOutlinerRows::Subtree::Clear(). Teensy patch ahead.
Attached patch patch to fixSplinter Review
I cc'd blake because I suspect this may be related to the crash he filed in bug 82913 waterson, can you review this?
Status: NEW → ASSIGNED
Thanks for fixing this. r=waterson
Blocks: 82913
Target Milestone: --- → mozilla0.9.2
No longer blocks: 82913
*** Bug 82913 has been marked as a duplicate of this bug. ***
sr=blake
a= asa@mozilla.org for checkin to the trunk. (on behalf of drivers)
PDT has approved this bug for 0.9.2
fixed
really fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified checked in
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: