summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-06-06 20:15:43 +0200
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2014-06-07 18:35:15 +0200
commit729ad1210c6c55eece7550e43437b9cb2c8fded3 (patch)
tree6368079f4266182f51746726c420c34dab0e84da
parentd0930b170d11cd834b34b95202ebdc3e4a96182d (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.cxx2
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;
}