From b9eb8ecb157f1e335faed1f06d96f32305851d3c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 14 Aug 2011 19:48:24 +0000 Subject: [PATCH] Don't overwrite changed citations. They will (sadly) lose their formatting in OOo at the moment. --- chrome/content/zotero/xpcom/integration.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index ac88072e9..a56a2eef1 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -861,7 +861,8 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations, (this._session.data.prefs.storeReferences ? "ITEM CSL_CITATION" : "ITEM") +" "+fieldCode); - if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich) { + if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich + && !citation.properties.dontUpdate) { // For ReferenceMarks with formatting, we need to set the text again, because // setting the field code removes formatting from the mark. I don't like this. field.setText(citation.properties.custom ? citation.properties.custom