diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-06-06 20:15:43 +0200 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-06-06 20:19:49 +0200 |
commit | 0ed60a973753d143158c5b17c781bac07bfc3827 (patch) | |
tree | 41f792e45d42a3abab5b1b37724797777de08867 | |
parent | b00d84975ebbc254821e8fa64173cf7c7f2c6a01 (diff) |
fdo#76281: Fix wrong square brackets in exported citations
There was a pair of unbalanced ifs in the code to write the opening
and the closing bracket, they should have the same condition.
Change-Id: I9b3e64486d1b87a8df65d351f01eb4cc9a8b8c44
-rw-r--r-- | sw/source/core/fields/authfld.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx index 62e05ac34343..4cfaf6aa1aa8 100644 --- a/sw/source/core/fields/authfld.cxx +++ b/sw/source/core/fields/authfld.cxx @@ -564,7 +564,7 @@ OUString SwAuthorityField::ConditionalExpand(ToxAuthorityField eField) const if(pEntry) sRet += pEntry->GetAuthorField(AUTH_FIELD_IDENTIFIER); } - if(pAuthType->GetSuffix()) + if(pAuthType->GetSuffix() && eField != AUTH_FIELD_TITLE) sRet += OUString(pAuthType->GetSuffix()); return sRet; } |