summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2023-04-02 00:49:31 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2023-04-02 10:11:21 +0200
commit7fed5d046f1c7c9e8caa2e80c020ea8f8ff6df66 (patch)
tree54ea0bb29fe9c9d3ee83f3d3ac8114f4f3051d8f /sc
parent341900458578cb7d875efeee1ffdc9a0429e92b7 (diff)
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 <momonasmon@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx7
1 files changed, 1 insertions, 6 deletions
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 );
}
}