Commit cd9024e1 authored by GoshaZotov's avatar GoshaZotov

fix bug 35904

parent 7aa2e268
......@@ -3427,7 +3427,7 @@
},
//TODO пока включаю протестированную функцию. позже доработать функцию _getAdjacentCellsAF2, она работает быстрее!
_getAdjacentCellsAF: function(ar, ignoreAutoFilter)
_getAdjacentCellsAF: function(ar, ignoreAutoFilter, doNotIncludeMergedCells)
{
var ws = this.worksheet;
var cloneActiveRange = ar.clone(true); // ToDo слишком много клонирования
......@@ -3467,11 +3467,15 @@
cell = ws.getRange3(n, k, n, k);
isEmptyCell = cell.isEmptyText();
merged = cell.hasMerged();
if(merged && doNotIncludeMergedCells){
continue;
}
//если мерженная ячейка
if(!(n == ar.r1 && k == ar.c1) && isMergedCells != null && isEmptyCell)
{
merged = cell.hasMerged();
valueMerg = null;
if(merged)
{
......
......@@ -12310,7 +12310,7 @@
var selectionRange = t.model.selectionRange;
var activeCell = selectionRange.activeCell.clone();
var activeCellRange = new Asc.Range(activeCell.col, activeCell.row, activeCell.col, activeCell.row);
var expandRange = t.model.autoFilters._getAdjacentCellsAF(activeCellRange, true);
var expandRange = t.model.autoFilters._getAdjacentCellsAF(activeCellRange, true, true);
//change selection
t.setSelection(expandRange);
......
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