Kaydet (Commit) beebcb6b authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Somehow the indentation was messed up in this method.

It was using a 3-space indentation as opposed to 4.

Change-Id: Idfb0e455c5d0afcad0a8b943dee9fd2679e6209d
üst 15b69ac3
......@@ -209,41 +209,41 @@ void ScDPCacheTable::fillTable(
void ScDPCacheTable::fillTable()
{
SCROW nRowCount = getRowSize();
SCCOL nColCount = getColSize();
if (nRowCount <= 0 || nColCount <= 0)
SCROW nRowCount = getRowSize();
SCCOL nColCount = getColSize();
if (nRowCount <= 0 || nColCount <= 0)
return;
maShowByFilter.clear();
maShowByPage.clear();
maShowByFilter.insert_front(0, nRowCount, true);
// Initialize field entries container.
maFieldEntries.clear();
maFieldEntries.reserve(nColCount);
// Data rows
for (SCCOL nCol = 0; nCol < nColCount; ++nCol)
{
maFieldEntries.push_back( vector<SCROW>() );
SCROW nMemCount = getCache()->GetDimMemberCount( nCol );
if (!nMemCount)
continue;
std::vector<SCROW> aAdded(nMemCount, -1);
for (SCROW nRow = 0; nRow < nRowCount; ++nRow)
{
SCROW nIndex = getCache()->GetItemDataId(nCol, nRow, false);
SCROW nOrder = getOrder(nCol, nIndex);
aAdded[nOrder] = nIndex;
}
for (SCROW nRow = 0; nRow < nMemCount; ++nRow)
{
if (aAdded[nRow] != -1)
maFieldEntries.back().push_back(aAdded[nRow]);
}
}
maShowByFilter.clear();
maShowByPage.clear();
maShowByFilter.insert_front(0, nRowCount, true);
// Initialize field entries container.
maFieldEntries.clear();
maFieldEntries.reserve(nColCount);
// Data rows
for (SCCOL nCol = 0; nCol < nColCount; ++nCol)
{
maFieldEntries.push_back( vector<SCROW>() );
SCROW nMemCount = getCache()->GetDimMemberCount( nCol );
if (!nMemCount)
continue;
std::vector<SCROW> aAdded(nMemCount, -1);
for (SCROW nRow = 0; nRow < nRowCount; ++nRow)
{
SCROW nIndex = getCache()->GetItemDataId(nCol, nRow, false);
SCROW nOrder = getOrder(nCol, nIndex);
aAdded[nOrder] = nIndex;
}
for (SCROW nRow = 0; nRow < nMemCount; ++nRow)
{
if (aAdded[nRow] != -1)
maFieldEntries.back().push_back(aAdded[nRow]);
}
}
}
bool ScDPCacheTable::isRowActive(sal_Int32 nRow, sal_Int32* pLastRow) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment