diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-12-12 14:18:59 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-12-12 14:21:26 -0500 |
commit | 99977d7864f632a6fd74d3e0490f545905ac4b96 (patch) | |
tree | 41d7dc81a5afa709e3cb080612a701710eab06c1 | |
parent | 0262ea0352cee2ecbe231e6f9f7188ce9edbb85c (diff) |
fdo#35539: Don't evaluate error cells as values during filtering.
E.g., if filtering for cells < 5, we should skip error cells. Previously,
error cells are unintentionally treated as having a numeric value of 0.
-rw-r--r-- | sc/source/core/data/table3.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index ffd5d6f390d8..b0d261f15e17 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -1157,7 +1157,13 @@ public: return false; if (pCell) + { + if (pCell->GetErrorCode()) + // Error values are compared as string. + return false; + return pCell->HasValueData(); + } return mrTab.HasValueData(nCol, nRow); } |