From d85e772fe4c4494c46d53d7079ddaf383ac31d98 Mon Sep 17 00:00:00 2001 From: Felix Fung Date: Fri, 17 Feb 2012 06:13:41 -0500 Subject: [PATCH] Bug 727901 - Fixed gImageView.data[row] is undefined when sorting. r=dao --- toolkit/content/treeUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/content/treeUtils.js b/toolkit/content/treeUtils.js index 046b685beec..7da5931a2e6 100644 --- a/toolkit/content/treeUtils.js +++ b/toolkit/content/treeUtils.js @@ -100,7 +100,7 @@ var gTreeUtils = { if (!ascending) aDataSet.reverse(); - aTree.view.selection.select(-1); + aTree.view.selection.clearSelection(); aTree.view.selection.select(0); aTree.treeBoxObject.invalidate(); aTree.treeBoxObject.ensureRowIsVisible(0);