[Libreoffice-commits] .: Branch 'distro/suse/suse-3.6' - sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Nov 5 08:52:44 PST 2012
sc/source/core/data/dpcachetable.cxx | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
New commits:
commit 896d681452e29417844257c8043d57ab0ba29fab
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Tue Oct 30 20:50:31 2012 -0400
fdo#56325: Don't forget to build_tree() in fillTable().
Else you'll get the wrong answer in isRowActive(), which always search
flag via tree.
Change-Id: I3fa92d06f7ba3040eca061d5424afefe362703de
Signed-off-by: David Tardon <dtardon at redhat.com>
diff --git a/sc/source/core/data/dpcachetable.cxx b/sc/source/core/data/dpcachetable.cxx
index 14f4e8e..1518955 100644
--- a/sc/source/core/data/dpcachetable.cxx
+++ b/sc/source/core/data/dpcachetable.cxx
@@ -143,6 +143,7 @@ void ScDPCacheTable::fillTable(
maShowByFilter.clear();
maShowByPage.clear();
+ maShowByPage.build_tree();
// Process the non-empty data rows.
for (SCROW nRow = 0; nRow < nDataSize; ++nRow)
@@ -211,15 +212,18 @@ void ScDPCacheTable::fillTable()
{
SCROW nRowCount = getRowSize();
SCCOL nColCount = getColSize();
- if (nRowCount <= 0 || nColCount <= 0)
+ if (nRowCount <= 0 || nColCount <= 0)
return;
- maShowByFilter.clear();
- maShowByPage.clear();
- maShowByFilter.insert_front(0, nRowCount, true);
+ maShowByPage.clear();
+ maShowByPage.build_tree();
- // Initialize field entries container.
- maFieldEntries.clear();
+ maShowByFilter.clear();
+ maShowByFilter.insert_front(0, nRowCount, true);
+ maShowByFilter.build_tree();
+
+ // Initialize field entries container.
+ maFieldEntries.clear();
maFieldEntries.reserve(nColCount);
// Data rows
More information about the Libreoffice-commits
mailing list