summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpcachetable.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-16 00:00:59 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-16 09:36:37 -0400
commitb41cf4c6153e9c4f7f56d0441a649664ffd4c7c2 (patch)
tree25c11998a0f4172e1238361b449a39eb1d08693c /sc/source/core/data/dpcachetable.cxx
parent9776cc1503690e4ccb0dd1d8d6cf6c35d5c8f01d (diff)
We shouldn't skip empty columns, or else column index becomes out of sync.
Diffstat (limited to 'sc/source/core/data/dpcachetable.cxx')
-rw-r--r--sc/source/core/data/dpcachetable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/dpcachetable.cxx b/sc/source/core/data/dpcachetable.cxx
index 4b7338f6d6b4..dc7a63a8b637 100644
--- a/sc/source/core/data/dpcachetable.cxx
+++ b/sc/source/core/data/dpcachetable.cxx
@@ -161,6 +161,7 @@ void ScDPCacheTable::fillTable(
// Data rows
for (SCCOL nCol = 0; nCol < nColCount; ++nCol)
{
+ maFieldEntries.push_back( vector<SCROW>() );
SCROW nMemCount = getCache()->GetDimMemberCount( nCol );
if ( nMemCount )
{
@@ -188,7 +189,6 @@ void ScDPCacheTable::fillTable(
aAdded[nOrder] = nIndex;
}
- maFieldEntries.push_back( vector<SCROW>() );
for ( SCROW nRow = 0; nRow < nMemCount; nRow++ )
{
if ( aAdded[nRow] != -1 )
@@ -216,6 +216,7 @@ void ScDPCacheTable::fillTable()
// Data rows
for (SCCOL nCol = 0; nCol < nColCount; ++nCol)
{
+ maFieldEntries.push_back( vector<SCROW>() );
SCROW nMemCount = getCache()->GetDimMemberCount( nCol );
if ( nMemCount )
{
@@ -234,7 +235,6 @@ void ScDPCacheTable::fillTable()
pAdded[nOrder] = nIndex;
}
- maFieldEntries.push_back( vector<SCROW>() );
for ( SCROW nRow = 0; nRow < nMemCount; nRow++ )
{
if ( pAdded[nRow] != -1 )