From 0679e01f7ee0b573b6dea3e9b2642cf851e873d2 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 17 Dec 2018 16:15:59 +0300 Subject: tdf#122156: closing a section link should not clear its Hidden flag If a section is hidden or not does not depend on whether it's linked or not. Clearing the Hidden flag made all linked sections not hidden in DocumentLinksAdministrationManager::EmbedAllLinks() during mail merge. Existed since commit 84a3db80b4fd66c6854b3135b5f69b61fd828e62 initial import Reviewed-on: https://gerrit.libreoffice.org/65286 Tested-by: Jenkins Reviewed-by: Mike Kaganski (cherry picked from commit fdf4afb25ba38c7be3278bb4bde462c3f9e722fc) Change-Id: If347008e4cf48ab1327eb04db9fdf69750ce8fa5 Reviewed-on: https://gerrit.libreoffice.org/65316 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sw/source/core/docnode/section.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'sw/source') diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx index 8eecfc5ac4c7..bdd89c7e8b56 100644 --- a/sw/source/core/docnode/section.cxx +++ b/sw/source/core/docnode/section.cxx @@ -1459,7 +1459,6 @@ void SwIntrnlSectRefLink::Closed() SwSectionData aSectionData(*rSectFormat.GetSection()); aSectionData.SetType( CONTENT_SECTION ); aSectionData.SetLinkFileName( OUString() ); - aSectionData.SetHidden( false ); aSectionData.SetProtectFlag( false ); // edit in readonly sections aSectionData.SetEditInReadonlyFlag( false ); -- cgit v1.2.3