From 98f22b4c55b5e2264f65f1432c1dc42ead6b2cc4 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Sun, 25 Jun 2006 21:57:58 +0000 Subject: [PATCH] Fix an error caused by landing the wrong patch for bug 340540, original patch r=mconnor git-svn-id: svn://10.0.0.236/trunk@200840 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/components/search/content/engineManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/browser/components/search/content/engineManager.js b/mozilla/browser/components/search/content/engineManager.js index 7c65cb213f7..6a34095b346 100644 --- a/mozilla/browser/components/search/content/engineManager.js +++ b/mozilla/browser/components/search/content/engineManager.js @@ -104,7 +104,7 @@ var gEngineManagerDialog = { gEngineView.rowCountChanged(index, -1); gEngineView.invalidate(); gEngineView.selection.select(Math.min(index, gEngineView.lastIndex)); - gEngineView.ensureRowIsVisible(index); + gEngineView.ensureRowIsVisible(Math.min(index, gEngineView.lastIndex)); document.getElementById("engineList").focus(); }, @@ -121,7 +121,7 @@ var gEngineManagerDialog = { gEngineView.invalidate(); gEngineView.selection.select(newIndex); - gEngineView.ensureRowIsVisible(index); + gEngineView.ensureRowIsVisible(newIndex); document.getElementById("engineList").focus(); },