From cc04cda5e4364049cc24fd1a7ec0d415ffef1c97 Mon Sep 17 00:00:00 2001 From: "slamm%netscape.com" Date: Thu, 27 Jul 2006 14:48:02 +0000 Subject: [PATCH] Fix crash on panel add (bug 28843). Add resource after assertions instead of before. r=waterson a=jar,jevering --- suite/common/sidebar/customize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite/common/sidebar/customize.js b/suite/common/sidebar/customize.js index 9b10bf08e150..e6537c1da44c 100644 --- a/suite/common/sidebar/customize.js +++ b/suite/common/sidebar/customize.js @@ -449,7 +449,6 @@ function delete_resource_deeply(container, resource) { // Copy a resource and all its arcs out to a new container. function copy_resource_deeply(source_datasource, resource, dest_container) { - dest_container.AppendElement(resource); var arcs = source_datasource.ArcLabelsOut(resource); while (arcs.HasMoreElements()) { var arc = arcs.GetNext(); @@ -459,6 +458,7 @@ function copy_resource_deeply(source_datasource, resource, dest_container) { dest_container.DataSource.Assert(resource, arc, target, true); } } + dest_container.AppendElement(resource); } function enable_buttons_for_other_panels()