From a04448dd7aaadc97542ad67ec19d5cb35fe532e0 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 10 Apr 2015 15:48:31 +0200 Subject: fdo#82014: Repaint & set the document to modified after condformat change. Change-Id: Ife3e805b95bede7be5d436abab925b35e717ee5e --- sc/source/ui/unoobj/cellsuno.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 88a8a43fb5d0..7b5df4eea0af 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -2417,6 +2417,11 @@ void ScCellRangesBase::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pE pNew->AddRange( aRanges ); pDocShell->GetDocFunc().ReplaceConditionalFormat( 0, pNew, nTab, aRanges ); } + + // and repaint + for (size_t i = 0; i < aRanges.size(); ++i) + pDocShell->PostPaint(*aRanges[i], PAINT_GRID); + pDocShell->SetDocumentModified(); } } } -- cgit v1.2.3