From 1ee3454e9eff626072c7718ac82f59750578e0a8 Mon Sep 17 00:00:00 2001 From: "varga%netscape.com" Date: Mon, 21 Apr 2003 08:30:57 +0000 Subject: [PATCH] Fix for bug 201077. Dragging a bookmark item to the last bookmark folder causes the application to hang. r+sr=bryner --- layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp b/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp index 97ff17ae1313..ab08399df0ba 100644 --- a/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp +++ b/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp @@ -3565,8 +3565,6 @@ nsTreeBodyFrame::ClearStyleAndImageCaches() NS_IMETHODIMP nsTreeBodyFrame::OnDragDrop (nsIDOMEvent* aEvent) { - mView->Drop(mDropRow, mDropOrient); - // Remove the drop folder and all its parents from the array. PRInt32 parentIndex; mView->GetParentIndex(mDropRow, &parentIndex); @@ -3575,6 +3573,8 @@ nsTreeBodyFrame::OnDragDrop (nsIDOMEvent* aEvent) mView->GetParentIndex(parentIndex, &parentIndex); } + mView->Drop(mDropRow, mDropOrient); + return NS_OK; } // OnDragDrop