Kaydet (Commit) 40377a6e authored tarafından Markus Mohrhard's avatar Markus Mohrhard

only use non blank cells in the visible data methods, fdo#54552

Change-Id: I2a0914fbaff3e3f707a9c06f693079aed2b89ba4
üst 622f7751
...@@ -1124,6 +1124,7 @@ bool ScColumn::IsEmptyVisData() const ...@@ -1124,6 +1124,7 @@ bool ScColumn::IsEmptyVisData() const
SCSIZE i; SCSIZE i;
for (i=0; i<maItems.size() && !bVisData; i++) for (i=0; i<maItems.size() && !bVisData; i++)
{ {
if(!maItems[i].pCell->IsBlank())
bVisData = true; bVisData = true;
} }
return !bVisData; return !bVisData;
...@@ -1158,10 +1159,13 @@ SCROW ScColumn::GetLastVisDataPos() const ...@@ -1158,10 +1159,13 @@ SCROW ScColumn::GetLastVisDataPos() const
for (i=maItems.size(); i>0 && !bFound; ) for (i=maItems.size(); i>0 && !bFound; )
{ {
--i; --i;
if(!maItems[i].pCell->IsBlank())
{
bFound = true; bFound = true;
nRet = maItems[i].nRow; nRet = maItems[i].nRow;
} }
} }
}
return nRet; return nRet;
} }
......
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