filter/source/pdf/pdfexport.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 0e2409e5e3c73ec25c61aa4ea140d114869ea512 Author: Hossein <hoss...@libreoffice.org> AuthorDate: Tue Jun 11 14:10:48 2024 +0200 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Thu Jun 13 22:37:37 2024 +0200 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 <fit...@ubuntu.com> Tested-by: Jenkins diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx index 37b82c55170a..8029958001ea 100644 --- a/filter/source/pdf/pdfexport.cxx +++ b/filter/source/pdf/pdfexport.cxx @@ -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;