Commit e76d4e7a authored by GoshaZotov's avatar GoshaZotov Committed by Alexander.Trofimov

change function clearFilterColumn

parent 29f695b1
......@@ -2431,14 +2431,14 @@
{
var rangeCellId = this._idToRange(cellId);
var colId = autoFilter.Ref.c2 - rangeCellId.c1;
var colId = rangeCellId.c1 - autoFilter.Ref.c1;
res = this._getTrueColId(filter, colId);
}
return res;
},
_getIndexByColId: function(autoFilter, cellId)
_getIndexByColId: function(autoFilter, colId)
{
var res = null;
......@@ -2446,7 +2446,7 @@
{
if(autoFilter.FilterColumns[i].ColId === colId)
{
index = i;
res = i;
break;
}
}
......@@ -4339,10 +4339,12 @@
if(colId !== null)
{
var index = this._getIndexByColId(filter, colId);
var index = this._getIndexByColId(autoFilter, colId);
this._openHiddenRowsAfterDeleteColumn(autoFilter, colId);
autoFilter.FilterColumns.splice(index, 1);
this._resetTablePartStyle();
}
return filter.Ref;
......
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