only use non blank cells in the visible data methods, fdo#54552
Change-Id: I2a0914fbaff3e3f707a9c06f693079aed2b89ba4
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user