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

Take advantage of segment-based hidden flag storage.

To avoid querying this states for every single column and row.

Change-Id: I3e570ae5309c826e809c170ea4635dd37c9b0d43
üst 28d5f8c6
...@@ -1270,10 +1270,19 @@ void ScTable::FillAutoSimple( ...@@ -1270,10 +1270,19 @@ void ScTable::FillAutoSimple(
CellType eCellType = CELLTYPE_NONE; CellType eCellType = CELLTYPE_NONE;
bool bIsOrdinalSuffix = false; bool bIsOrdinalSuffix = false;
bool bColHidden = false, bRowHidden = false;
SCCOL nColHiddenLast = -1;
SCROW nRowHiddenLast = -1;
rInner = nIStart; rInner = nIStart;
while (true) // #i53728# with "for (;;)" old solaris/x86 compiler mis-optimizes while (true) // #i53728# with "for (;;)" old solaris/x86 compiler mis-optimizes
{ {
if(!ColHidden(rCol) && !RowHidden(rRow)) if (rCol > nColHiddenLast)
bColHidden = ColHidden(rCol, NULL, &nColHiddenLast);
if (rRow > nRowHiddenLast)
bRowHidden = RowHidden(rRow, NULL, &nRowHiddenLast);
if (!bColHidden && !bRowHidden)
{ {
if ( bGetCell ) if ( bGetCell )
{ {
......
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