sc/source/core/data/table2.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
New commits: commit 7fed5d046f1c7c9e8caa2e80c020ea8f8ff6df66 Author: Maxim Monastirsky <momonas...@gmail.com> AuthorDate: Sun Apr 2 00:49:31 2023 +0300 Commit: Maxim Monastirsky <momonas...@gmail.com> CommitDate: Sun Apr 2 10:11:21 2023 +0200 Related: tdf#152250 Copy also style hierarchy Change-Id: I134857c9a7749b0dd4a6fe6842dcc8c72d373f4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149928 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonas...@gmail.com> diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 4eb5671f0dc7..caa43bcf981b 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -695,13 +695,8 @@ void ScTable::CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO aStyleName = static_cast<const ScCondDateFormatEntry*>(pEntry)->GetStyleName(); if(!aStyleName.isEmpty()) - { - if(rDocument.GetStyleSheetPool()->Find(aStyleName, SfxStyleFamily::Para)) - continue; - rDocument.GetStyleSheetPool()->CopyStyleFrom( - pTable->rDocument.GetStyleSheetPool(), aStyleName, SfxStyleFamily::Para ); - } + pTable->rDocument.GetStyleSheetPool(), aStyleName, SfxStyleFamily::Para, true ); } }