From a6d2e1ef128b375a76997f6fcc9b9c29a9dedc24 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 9 Sep 2011 23:23:24 -0400 Subject: ResetChanged() now takes range list. --- sc/source/ui/docshell/docsh3.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sc/source/ui/docshell/docsh3.cxx') diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index 3b71f726eeff..49b5f459efd2 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -182,14 +182,10 @@ void ScDocShell::PostPaint( const ScRangeList& rRanges, sal_uInt16 nPart, sal_uI aPaintRanges.Append(ScRange(nCol1, nRow1, nTab1, nCol2, nRow2, nTab2)); } - for (size_t i = 0, n = aPaintRanges.size(); i < n; ++i) - { - const ScRange& r = *aPaintRanges[i]; - Broadcast(ScPaintHint(r, nPart)); + Broadcast(ScPaintHint(aPaintRanges.Combine(), nPart)); - if (nPart & PAINT_GRID) - aDocument.ResetChanged(r); - } + if (nPart & PAINT_GRID) + aDocument.ResetChanged(aPaintRanges); } void ScDocShell::PostPaintGridAll() -- cgit