Commit 9545391a authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32567

ToDo filter top10 with empty and text cells not working correct
parent 39d3528b
...@@ -6271,7 +6271,8 @@ Top10.prototype.clone = function() { ...@@ -6271,7 +6271,8 @@ Top10.prototype.clone = function() {
res.Val = this.Val; res.Val = this.Val;
return res; return res;
}; };
Top10.prototype.isHideValue = function(val, top10Length) { Top10.prototype.isHideValue = function(val) {
// ToDo работает не совсем правильно.
var res = false; var res = false;
if(null !== this.FilterVal) if(null !== this.FilterVal)
...@@ -6306,7 +6307,7 @@ Top10.prototype.init = function(range, reWrite){ ...@@ -6306,7 +6307,7 @@ Top10.prototype.init = function(range, reWrite){
var arr = []; var arr = [];
var alreadyAddValues = {}; var alreadyAddValues = {};
var count = 0; var count = 0;
range._foreach2(function(cell){ range._setPropertyNoEmpty(null, null, function(cell){
var val = parseFloat(cell.getValueWithoutFormat()); var val = parseFloat(cell.getValueWithoutFormat());
if(!isNaN(val) && !alreadyAddValues[val]) if(!isNaN(val) && !alreadyAddValues[val])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment