summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-04-10 15:48:31 +0200
committerJan Holesovsky <kendy@collabora.com>2015-04-10 15:50:02 +0200
commita04448dd7aaadc97542ad67ec19d5cb35fe532e0 (patch)
treed29586477d3db8ef61ad55939554f93943ac7420
parentconditional formatting: Follow-up rebase fixes. (diff)
downloadcore-private/kendy/condformat-fdo82014.tar.gz
core-private/kendy/condformat-fdo82014.zip
fdo#82014: Repaint & set the document to modified after condformat change. private/kendy/condformat-fdo82014
Change-Id: Ife3e805b95bede7be5d436abab925b35e717ee5e
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx5
1 files changed, 5 insertions, 0 deletions
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();
}
}
}