From 56eb416e3ee058594c1dec056cb408241650e04b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 24 Oct 2008 21:08:44 +0000 Subject: [PATCH] Fix error in doc prefs window if lastStyle is set to an invalid style --- chrome/content/zotero/bibliography.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index 27d466917..ad88123b2 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -62,6 +62,7 @@ var Zotero_File_Interface_Bibliography = new function() { // add styles to list var index = 0; var nStyles = styles.length; + var selectIndex = -1; for(var i=0; i