diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 964f1d4fbe75..6a74d780d950 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -1124,7 +1124,8 @@ bool ScColumn::IsEmptyVisData() const SCSIZE i; for (i=0; iIsBlank()) + 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;