summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-12-12 14:18:59 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-12-12 14:21:26 -0500
commit99977d7864f632a6fd74d3e0490f545905ac4b96 (patch)
tree41d7dc81a5afa709e3cb080612a701710eab06c1
parent0262ea0352cee2ecbe231e6f9f7188ce9edbb85c (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.cxx6
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);
}