diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 13:17:28 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 20:19:28 -0400 |
commit | 02304b8fc917a8af4230ddf3e26a45000550768a (patch) | |
tree | 8f90b756363f86e707e7a17041c893fede876b0f /sc/source/core/data/columnspanset.cxx | |
parent | 96d56b9cc6a3e00faf231e92bffbfff7e73a7ee5 (diff) |
Ditto when purging broadcasters.
Change-Id: I632d617cad76485f7e1f57daa7db4d4cfa775e8b
Diffstat (limited to 'sc/source/core/data/columnspanset.cxx')
-rw-r--r-- | sc/source/core/data/columnspanset.cxx | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx index ea4f7060dbc6..9b63dc75f728 100644 --- a/sc/source/core/data/columnspanset.cxx +++ b/sc/source/core/data/columnspanset.cxx @@ -85,43 +85,14 @@ void ColumnSpanSet::executeFromTop(Action& ac) const ColumnSpansType::const_iterator it = rCol.begin(), itEnd = rCol.end(); SCROW nRow1, nRow2; nRow1 = it->first; + bool bVal = it->second; for (++it; it != itEnd; ++it) { nRow2 = it->first-1; - bool bVal = it->second; ac.execute(ScAddress(nCol, nRow1, nTab), nRow2-nRow1+1, bVal); nRow1 = nRow2+1; // for the next iteration. - } - } - } -} - -void ColumnSpanSet::executeFromBottom(Action& ac) const -{ - for (size_t nTab = 0; nTab < maDoc.size(); ++nTab) - { - if (!maDoc[nTab]) - continue; - - const TableType& rTab = *maDoc[nTab]; - for (size_t nCol = 0; nCol < rTab.size(); ++nCol) - { - if (!rTab[nCol]) - continue; - - ac.startColumn(nTab, nCol); - ColumnSpansType& rCol = *rTab[nCol]; - ColumnSpansType::const_reverse_iterator it = rCol.rbegin(), itEnd = rCol.rend(); - SCROW nRow1, nRow2; - nRow2 = it->first-1; - for (++it; it != itEnd; ++it) - { - nRow1 = it->first; - bool bVal = it->second; - ac.execute(ScAddress(nCol, nRow1, nTab), nRow2-nRow1+1, bVal); - - nRow2 = nRow1-1; // for the next iteration. + bVal = it->second; } } } |