diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 10c93af3b5..87c57237e3 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -714,7 +714,14 @@ Zotero.Style.prototype.__defineGetter__("class", * @type String */ function() { - if(!this._class) this.getXML(); + if(this.source) { + // use class from source style + var parentStyle = Zotero.Styles.get(this.source); + if(!parentStyle) { + throw new Error('Style references missing parent ' + this.source); + } + return parentStyle.class; + } return this._class; });