[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - sw/source
Jacobo Aragunde Pérez
jaragunde at igalia.com
Sat Jun 7 09:36:23 PDT 2014
sw/source/core/fields/authfld.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 729ad1210c6c55eece7550e43437b9cb2c8fded3
Author: Jacobo Aragunde Pérez <jaragunde at igalia.com>
Date: Fri Jun 6 20:15:43 2014 +0200
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
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index 62e05ac..4cfaf6a 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;
}
More information about the Libreoffice-commits
mailing list