summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorTibor Nagy <nagy.tibor2@nisz.hu>2023-07-13 14:54:55 +0200
committerLászló Németh <nemeth@numbertext.org>2023-07-25 14:12:34 +0200
commite384be0f6ea6453e57cd4a7c4402d26b49debc41 (patch)
tree00f31092a8b8ba79045d51bd84eb40410f10288c /sc/source/ui/docshell
parent99e6e4dd273752ee671d1ade00b381786800a508 (diff)
tdf#99808 sc: fix background of conditional formatting in merged cell
The background color of conditional formatting is applied only to the first cell in the merged block, at least under Windows. Note: Undo/Redo is still not perfect, at least under Linux. Change-Id: Ic87983fa6e3279a64841babc565fbe97710ff730 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154390 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 4d99824fe0a0..4d3288558c40 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5670,7 +5670,7 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, std::unique_ptr<
}
if(pRepaintRange)
- rDocShell.PostPaint(*pRepaintRange, PaintPartFlags::Grid);
+ rDocShell.PostPaint(*pRepaintRange, PaintPartFlags::Grid, SC_PF_TESTMERGE);
aModificator.SetDocumentModified();
SfxGetpApp()->Broadcast(SfxHint(SfxHintId::ScAreasChanged));