sw/source/core/fields/authfld.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0ed60a973753d143158c5b17c781bac07bfc3827
Author: Jacobo Aragunde Pérez <jaragu...@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;
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to