Kaydet (Commit) 0ed60a97 authored tarafından Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez

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
üst b00d8497
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment