From 832e50712e810f5c049aae84bae44ac596bf4d3f Mon Sep 17 00:00:00 2001 From: "putterman%netscape.com" Date: Tue, 8 Jun 1999 21:04:02 +0000 Subject: [PATCH] Check in fix for hyatt. Don't crash when closing a window after onchange has been called. git-svn-id: svn://10.0.0.236/trunk@34252 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/xul/base/src/nsTreeFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/xul/base/src/nsTreeFrame.cpp b/mozilla/layout/xul/base/src/nsTreeFrame.cpp index d51def8d91b..ada1d692723 100644 --- a/mozilla/layout/xul/base/src/nsTreeFrame.cpp +++ b/mozilla/layout/xul/base/src/nsTreeFrame.cpp @@ -177,11 +177,11 @@ nsTreeFrame::RemoveFromSelection(nsIPresContext& aPresContext, nsTreeCellFrame* nsTreeCellFrame* theFrame = (nsTreeCellFrame*)mSelectedItems[i]; if (theFrame == frame) { mSelectedItems.RemoveElementAt(i); - break; + FireChangeHandler(aPresContext); + return; } } - FireChangeHandler(aPresContext); } void nsTreeFrame::MoveUp(nsIPresContext& aPresContext, nsTreeCellFrame* pFrame)