From 25e49faa2cfb5148aae6e8c0a7c6ba58cbaaabd0 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 14 Feb 2012 12:06:26 -0500 Subject: [PATCH] Don't break bibliography dialog in RTF Scan --- chrome/content/zotero/bibliography.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index 5a7b5b940a..3e1bd00e28 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -30,6 +30,7 @@ ////////////////////////////////////////////////////////////////////////////// // Class to provide options for bibliography +// Used by rtfScan.xul, integrationDocPrefs.xul, and bibliography.xul var Zotero_File_Interface_Bibliography = new function() { var _io, _saveStyle; @@ -45,7 +46,10 @@ var Zotero_File_Interface_Bibliography = new function() { function init() { // Set font size from pref // Affects bibliography.xul and integrationDocPrefs.xul - Zotero.setFontSize(document.getElementById("zotero-bibliography-container")); + var bibContainer = document.getElementById("zotero-bibliography-container"); + if(bibContainer) { + Zotero.setFontSize(document.getElementById("zotero-bibliography-container")); + } if(window.arguments && window.arguments.length) { _io = window.arguments[0];