[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Thu Jun 14 13:13:47 UTC 2018
sc/source/core/tool/interpr6.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cfe2e4eb835c06b24adabd60c7a3fddbd3f4dbc9
Author: Eike Rathke <erack at redhat.com>
Date: Thu Jun 14 15:00:14 2018 +0200
Resolves: tdf#118161 use ScCellIterator::isEmpty() for COUNTA()
... instead of hasEmptyData() that considers inherited svEmptyCell
as well.
Effectively a regression from
commit 0e9e3be6f51436c1e5bf1481a434a85e334c09ea
CommitDate: Tue Mar 26 01:41:17 2013 -0400
More on ScCellIterator usage migration.
that started to include mpCurFormula->IsEmpty() in
ScCellIterator::isEmpty() which later was renamed to
ScCellIterator::hasEmptyData() and isEmpty() introduced for real
empty.
Change-Id: Iec97d58080016c28bc9a7e47d056e4d301263928
diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx
index a9b48d061b3c..c7554699bfa9 100644
--- a/sc/source/core/tool/interpr6.cxx
+++ b/sc/source/core/tool/interpr6.cxx
@@ -809,7 +809,7 @@ void ScInterpreter::IterateParameters( ScIterFunc eFunc, bool bTextAsZero )
ScCellIterator aIter( pDok, aRange, mnSubTotalFlags );
for (bool bHas = aIter.first(); bHas; bHas = aIter.next())
{
- if ( !aIter.hasEmptyData() )
+ if ( !aIter.isEmpty() )
{
++nCount;
}
More information about the Libreoffice-commits
mailing list