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