Fix for a crash in the onchange handler of tree views on exit.

This commit is contained in:
hyatt%netscape.com 1999-06-08 18:12:47 +00:00
parent 8479bc35a4
commit bae84c1437
2 changed files with 8 additions and 0 deletions

View File

@ -265,3 +265,9 @@ void nsTreeFrame::FireChangeHandler(nsIPresContext& aPresContext)
}
}
NS_IMETHODIMP
nsTreeFrame::DeleteFrame(nsIPresContext& aPresContext)
{
ClearSelection(aPresContext);
return nsTableFrame::DeleteFrame(aPresContext);
}

View File

@ -41,6 +41,8 @@ public:
void FireChangeHandler(nsIPresContext& aPresContext);
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
protected:
nsTreeFrame();
virtual ~nsTreeFrame();