diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2009-09-15 22:37:56 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2009-09-15 22:37:56 -0400 |
commit | 273d64160792ffa17bfa2e13f305edba5d5e76c5 (patch) | |
tree | 64d75953e7fcef15f199a266bb4246ad9d598085 /sc | |
parent | 9953c707b8af906ed186f1fae8ed00852ab93ff6 (diff) |
skip empty matrix values when iterating through them.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dociter.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index 3005522f8..9c48f4252 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -648,6 +648,10 @@ bool ScDBQueryValueIterator::DataAccessMatrix::getCurrent(double& rValue, USHORT for ( ;mnCurRow < mnRows; ++mnCurRow) { const ScMatrix& rMat = *mpParam->mpMatrix; + if (rMat.IsEmpty(mpParam->mnField, mnCurRow)) + // Don't take empty values into account. + continue; + if (isValidQuery(mnCurRow, rMat)) { rValue = rMat.GetDouble(mpParam->mnField, mnCurRow); |