From bf48e869bf0db538887ca574d3b4de830e783033 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 046b685beec7..7da5931a2e6b 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);