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

Change-Id: I2a0914fbaff3e3f707a9c06f693079aed2b89ba4
This commit is contained in:
Markus Mohrhard
2012-10-17 13:10:09 +02:00
parent 622f7751b7
commit 40377a6e26

View File

@@ -1124,7 +1124,8 @@ bool ScColumn::IsEmptyVisData() const
SCSIZE i;
for (i=0; i<maItems.size() && !bVisData; i++)
{
bVisData = true;
if(!maItems[i].pCell->IsBlank())
bVisData = true;
}
return !bVisData;
}
@@ -1158,8 +1159,11 @@ SCROW ScColumn::GetLastVisDataPos() const
for (i=maItems.size(); i>0 && !bFound; )
{
--i;
bFound = true;
nRet = maItems[i].nRow;
if(!maItems[i].pCell->IsBlank())
{
bFound = true;
nRet = maItems[i].nRow;
}
}
}
return nRet;