tdf#156717 Fix "LibreOffice Community" in PDF metadata
These settings are available to set the brand when building LibreOffice: 1) Community flavor: yes / no This is set via --disable-community-flavor, that defines HAVE_FEATURE_COMMUNITY_FLAVOR, which is used in cui/source/dialogs/about.cxx. 2) Product name: A string (set via --with-product-name='name') This defines PRODUCTNAME, which is used in many places in the code. Not every LibreOffice build is a "LibreOffice Community" flavor. This patch fixes this issue by using community brand only when variable HAVE_FEATURE_COMMUNITY_FLAVOR is set. Change-Id: Ib74450f380fed7c24222f88e389ddb5363bda3c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168676 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Jenkins
This commit is contained in:
committed by
Adolfo Jayme Barrientos
parent
a38180b539
commit
0e2409e5e3
@@ -515,7 +515,11 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
|
||||
utl::ConfigManager::getProductName() +
|
||||
" " +
|
||||
utl::ConfigManager::getAboutBoxProductVersion() +
|
||||
" (" + arch + ") / LibreOffice Community";
|
||||
" (" + arch + ")"
|
||||
#if HAVE_FEATURE_COMMUNITY_FLAVOR
|
||||
" / LibreOffice Community"
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
aContext.DocumentInfo.Creator = aCreator;
|
||||
|
||||
Reference in New Issue
Block a user